AnimationController constructor

AnimationController({
  1. double? value,
  2. Duration? duration,
  3. Duration? reverseDuration,
  4. String? debugLabel,
  5. double lowerBound = 0.0,
  6. double upperBound = 1.0,
  7. AnimationBehavior animationBehavior = AnimationBehavior.normal,
  8. required TickerProvider vsync,
})

Implementation

AnimationController({
  double? value,
  this.duration,
  this.reverseDuration,
  this.debugLabel,
  this.lowerBound = 0.0,
  this.upperBound = 1.0,
  this.animationBehavior = AnimationBehavior.normal,
  required TickerProvider vsync,
}) : _ticker = vsync.createTicker(_tickProxy) {
  _internalSetValue(value ?? lowerBound);
}