Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Add stubs for Timer.tick, ready for Dart 2.0 core lib changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Googler authored and alorenzen committed Jan 8, 2018
1 parent 0790be5 commit de4d3f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions angular/lib/src/core/zone/ng_zone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit de4d3f8

Please sign in to comment.