Merge pull request #43 from dart-lang/libs

Update for Dart 2.0 changes to Timer
diff --git a/.travis.yml b/.travis.yml
index 662d2fe..8d63d09 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,9 +2,6 @@
 sudo: false
 dart:
   - dev
-  - stable
-  - 1.23.0
-  - 1.22.1
 cache:
   directories:
     - $HOME/.pub-cache
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82b7877..da57bb6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 2.0.2
+
+* Add support for Dart 2.0 library changes to class `Timer`. 
+
 ## 2.0.1
 
 * Fix a fuzzy arrow type warning.
diff --git a/lib/src/restartable_timer.dart b/lib/src/restartable_timer.dart
index eed51e6..7b05821 100644
--- a/lib/src/restartable_timer.dart
+++ b/lib/src/restartable_timer.dart
@@ -43,4 +43,12 @@
   void cancel() {
     _timer.cancel();
   }
+
+  @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");
+  }
 }
diff --git a/pubspec.yaml b/pubspec.yaml
index b5173cf..bfc4171 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,10 +1,10 @@
 name: async
-version: 2.0.1
+version: 2.0.2
 author: Dart Team <misc@dartlang.org>
 description: Utility functions and classes related to the 'dart:async' library.
 homepage: https://www.github.com/dart-lang/async
 environment:
-  sdk: ">=1.22.0 <2.0.0"
+  sdk: ">=2.0.0-dev.15.0 <2.0.0"
 dependencies:
   collection: "^1.5.0"
 dev_dependencies: