| 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'; | |
| 6 import 'curves.dart'; | 5 import 'curves.dart'; |
| 7 import 'dart:async'; | 6 import 'dart:async'; |
| 8 import 'generators.dart'; | 7 import 'generators.dart'; |
| 9 | 8 |
| 10 class AnimatedValue { | 9 class AnimatedValue { |
| 11 StreamController _controller = new StreamController(sync: true); | 10 StreamController _controller = new StreamController(sync: true); |
| 12 AnimationGenerator _animation; | 11 AnimationGenerator _animation; |
| 13 Completer _completer; | 12 Completer _completer; |
| 14 double _value; | 13 double _value; |
| 15 | 14 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return _completer.future; | 67 return _completer.future; |
| 69 } | 68 } |
| 70 | 69 |
| 71 double get remainingTime { | 70 double get remainingTime { |
| 72 if (_animation == null) | 71 if (_animation == null) |
| 73 return 0.0; | 72 return 0.0; |
| 74 return _animation.remainingTime; | 73 return _animation.remainingTime; |
| 75 } | 74 } |
| 76 | 75 |
| 77 } | 76 } |
| OLD | NEW |