Animator<T> constructor
Animator<T> (
- T initialValue, {
- AnimationStatus initialStatus = .dismissed,
- Vsync vsync = .fallback,
- AnimationBehavior behavior = .normal,
- Duration? duration,
- Curve? curve,
- Duration? reverseDuration,
- Curve? reverseCurve,
- 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);
}