ProxyAnimationGeneric<T> constructor
ProxyAnimationGeneric<T> ([
- Animation<
T> ? animation, - T? defaultValue
Creates a proxy animation.
If the animation argument is omitted, the proxy animation will have the status AnimationStatus.dismissed and a value of 0.0.
Implementation
ProxyAnimationGeneric([Animation<T>? animation, T? defaultValue]) {
_parent = animation;
if (_parent == null) {
_status = AnimationStatus.dismissed;
_value = defaultValue;
}
}