Spinner constructor

Spinner(
  1. String _text, {
  2. List<String> states = const ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
  3. Duration animationSpeed = const Duration(milliseconds: 250),
})

Implementation

Spinner(
  this._text, {
  this.states = const ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
  this.animationSpeed = const Duration(milliseconds: 250),
}) : assert(animationSpeed > Spinner.frameRate);