format method

String format()

Implementation

String format() {
  final pct = (fraction * 100).toStringAsFixed(0);
  final current = currentStep;
  final stepName = current?.name ?? 'Done';
  return '[$pct%] $stepName (${elapsed.inMilliseconds}ms)';
}