| Index: sky/sdk/lib/widgets/toggleable.dart
|
| diff --git a/sky/sdk/lib/widgets/toggleable.dart b/sky/sdk/lib/widgets/toggleable.dart
|
| index 10162678d057521e2dc9663595b345f298e647fb..f6187415d3ed03c1ff00dffccfc1ebeff5e28675 100644
|
| --- a/sky/sdk/lib/widgets/toggleable.dart
|
| +++ b/sky/sdk/lib/widgets/toggleable.dart
|
| @@ -20,8 +20,8 @@ abstract class Toggleable extends AnimatedComponent {
|
| this.value,
|
| this.onChanged
|
| }) : super(key: key) {
|
| - position = new AnimatedType<double>(0.0, end: 1.0);
|
| - performance = new AnimationPerformance()
|
| + _position = new AnimatedType<double>(0.0, end: 1.0);
|
| + _performance = new AnimationPerformance()
|
| ..variable = position
|
| ..duration = _kCheckDuration
|
| ..progress = value ? 1.0 : 0.0;
|
| @@ -31,8 +31,11 @@ abstract class Toggleable extends AnimatedComponent {
|
| bool value;
|
| ValueChanged onChanged;
|
|
|
| - AnimatedType<double> position;
|
| - AnimationPerformance performance;
|
| + AnimatedType<double> _position;
|
| + AnimatedType<double> get position => _position;
|
| +
|
| + AnimationPerformance _performance;
|
| + AnimationPerformance get performance => _performance;
|
|
|
| void syncFields(Toggleable source) {
|
| onChanged = source.onChanged;
|
|
|