startSpinner method

dynamic startSpinner(
  1. String message, {
  2. MessageSeverity severity = MessageSeverity.log,
})

Implementation

startSpinner(String message,
    {MessageSeverity severity = MessageSeverity.log}) {
  if (_spinner != null) stopSpinner();
  _spinner = Spinner(message)
    ..severity = severity
    ..isBusy = true;
  _timer = Timer.periodic(Duration(milliseconds: 80), (timer) {
    _updateStatus();
  });
}