Spinner constructor

Spinner({
  1. String message = '',
  2. List<String> spinnerCharacters = const <String>['|', '/', '-', '\\'],
  3. int intervalMs = 100,
  4. Coordinate? startCoordinate,
})

Creates a new spinner.

message is displayed next to the spinner animation. spinnerCharacters defines the animation frames (defaults to a rotating line). intervalMs controls the animation speed in milliseconds.

Implementation

Spinner({
  this.message = '',
  this.spinnerCharacters = const <String>['|', '/', '-', '\\'],
  this.intervalMs = 100,
  Coordinate? startCoordinate,
}) : _startCoordinate = startCoordinate;