Spinner constructor

Spinner({
  1. String text = 'Loading',
  2. SpinnerType spinnerType = SpinnerType.dots,
  3. Duration interval = const Duration(milliseconds: 80),
})

Creates a new spinner with the specified configuration.

text is the message displayed next to the spinner. spinnerType defines the animation style (default is 'dots').

Implementation

Spinner({
  String text = 'Loading',
  this.spinnerType = SpinnerType.dots,
  this.interval = const Duration(milliseconds: 80),
}) : _text = text;