controller property
final
An optional AnimationController that controls the animation of this indeterminate progress indicator.
This controller is only used when the indicator is indeterminate (i.e., when value is null). If this property is non-null, value must be null.
The controller's value is expected to be a linear progression from 0.0 to 1.0, which represents one full cycle of the indeterminate animation.
If this controller is null (and value is also null), the widget will look for a ProgressIndicatorThemeData.controller. If that is also null, the widget will create and manage its own internal AnimationController to drive the default indeterminate animation.
See also:
- CircularProgressIndicator.defaultAnimationDuration, default duration for one full cycle of the indeterminate animation.
Implementation
final AnimationController? controller;