| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; |
| 6 |
| 5 import 'curves.dart'; | 7 import 'curves.dart'; |
| 6 import 'dart:async'; | |
| 7 import 'generators.dart'; | 8 import 'generators.dart'; |
| 8 | 9 |
| 9 typedef void Callback (); | 10 typedef void Callback (); |
| 10 | 11 |
| 11 class AnimatedValue { | 12 class AnimatedValue { |
| 12 StreamController<double> _controller = new StreamController<double>.broadcast(
sync: true); | 13 StreamController<double> _controller = new StreamController<double>.broadcast(
sync: true); |
| 13 AnimationGenerator _animation; | 14 AnimationGenerator _animation; |
| 14 Completer _completer; | 15 Completer _completer; |
| 15 double _value; | 16 double _value; |
| 16 | 17 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return _completer.future; | 75 return _completer.future; |
| 75 } | 76 } |
| 76 | 77 |
| 77 double get remainingTime { | 78 double get remainingTime { |
| 78 if (_animation == null) | 79 if (_animation == null) |
| 79 return 0.0; | 80 return 0.0; |
| 80 return _animation.remainingTime; | 81 return _animation.remainingTime; |
| 81 } | 82 } |
| 82 | 83 |
| 83 } | 84 } |
| OLD | NEW |