ProxyAnimation constructor

ProxyAnimation([Animation<double> animation ])

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

ProxyAnimation([Animation<double> animation]) {
  _parent = animation;
  if (_parent == null) {
    _status = AnimationStatus.dismissed;
    _value = 0.0;
  }
}