formatSpinner method

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

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

Implementation

String formatSpinner(String frame, ActiveScope active) {
  return '$frame ${active.scope.label}... (${formatElapsed(active.stopwatch.elapsed)})';
}