formatSpinner method

  1. @override
String formatSpinner(
  1. String frame,
  2. ActiveScope active
)
override

Format the spinner text for the currently active scope. Default uses green braille frames with gray elapsed time.

Implementation

@override
String formatSpinner(String frame, ActiveScope active) {
  final elapsed = _gray('(${formatElapsed(active.stopwatch.elapsed)})');
  return '${_cyan(frame)} ${active.scope.label}... $elapsed';
}