Animator<T> constructor

Animator<T>(
  1. T initialValue, {
  2. AnimationStatus initialStatus = .dismissed,
  3. Vsync vsync = .fallback,
  4. AnimationBehavior behavior = .normal,
  5. Duration? duration,
  6. Curve? curve,
  7. Duration? reverseDuration,
  8. Curve? reverseCurve,
  9. String? debugLabel,
})

Initializes fields for subclasses.

Implementation

Animator(
  // ignore: matching_super_parameters
  super.initialValue, {
  this._initialStatus = .dismissed,
  this._vsync = .fallback,
  this.behavior = .normal,
  this._duration,
  this._curve,
  this._reverseDuration,
  this._reverseCurve,
  this.debugLabel,
}) : _initialValue = initialValue,
     statusNotifier = ValueNotifier(_initialStatus) {
  _ticker = vsync.createTicker(_tick);
  vsync.registerAnimation(this);
}