formatScopeComplete method

String formatScopeComplete(
  1. LogScope scope,
  2. bool success,
  3. Duration duration
)

Format the scope completion line. Default uses ✓/✗ with the label and elapsed time.

Implementation

String formatScopeComplete(LogScope scope, bool success, Duration duration) {
  final icon = success ? '\u2713' : '\u2717';
  return '$icon ${scope.label} (${formatElapsed(duration)})';
}