SpinnerController constructor

SpinnerController(
  1. Spinner spinner, {
  2. bool autoStart = true,
})

Creates a controller that animates spinner.

If autoStart is true (default), the animation starts immediately.

Implementation

SpinnerController(this.spinner, {bool autoStart = true})
  : super(spinner.frames.first) {
  if (autoStart) _start();
}