From de4d3f83f3b6e2265622500c5e5fdc2a652f5c93 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 8 Jan 2018 09:10:31 -0800 Subject: [PATCH] Add stubs for Timer.tick, ready for Dart 2.0 core lib changes. #Dart2 Tested: https://tap.corp.google.com/ui#id=OCL:180837836:BASE:180879972:1515123567313:29de349d PiperOrigin-RevId: 181173154 --- angular/lib/src/core/zone/ng_zone.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/angular/lib/src/core/zone/ng_zone.dart b/angular/lib/src/core/zone/ng_zone.dart index fb75f5c279..9cb53fe21a 100644 --- a/angular/lib/src/core/zone/ng_zone.dart +++ b/angular/lib/src/core/zone/ng_zone.dart @@ -397,6 +397,14 @@ class WrappedTimer implements Timer { } bool get isActive => _timer.isActive; + + @override + // TODO: Dart 2.0 requires this method to be implemented. + // See https://github.com/dart-lang/sdk/issues/31664 + // ignore: override_on_non_overriding_getter + int get tick { + throw new UnimplementedError("tick"); + } } /// Stores error information; delivered via [NgZone.onError] stream.