ChainedAnimation<T> constructor

ChainedAnimation<T>(
  1. FluxAnimation<T> _animation, {
  2. FluxAnimation<T>? then,
})

Implementation

ChainedAnimation(this._animation, {FluxAnimation<T>? then})
  : _next = then == null ? null : ChainedAnimation(then) {
  if (_next != null && _animation.isCompleted) {
    _active = _next;
  } else {
    _active = _animation;
  }
}