Spinner constructor
Spinner({
- String text = 'Loading',
- SpinnerType spinnerType = SpinnerType.dots,
- 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;