| 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 '../fn.dart'; | 5 import '../fn.dart'; |
| 6 import 'curves.dart'; | 6 import 'curves.dart'; |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'generators.dart'; | 8 import 'generators.dart'; |
| 9 | 9 |
| 10 class AnimatedValue { | 10 class AnimatedValue { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 duration: duration, | 60 duration: duration, |
| 61 begin: _value, | 61 begin: _value, |
| 62 end: newValue, | 62 end: newValue, |
| 63 curve: curve, | 63 curve: curve, |
| 64 initialDelay: initialDelay) | 64 initialDelay: initialDelay) |
| 65 ..onTick.listen(_setValue, onDone: _done); | 65 ..onTick.listen(_setValue, onDone: _done); |
| 66 | 66 |
| 67 _completer = new Completer(); | 67 _completer = new Completer(); |
| 68 return _completer.future; | 68 return _completer.future; |
| 69 } | 69 } |
| 70 |
| 71 double get remainingTime { |
| 72 if (_animation == null) |
| 73 return 0.0; |
| 74 return _animation.remainingTime; |
| 75 } |
| 76 |
| 70 } | 77 } |
| OLD | NEW |