formatScopeEnd method

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

Format the scope completion for non-interactive output.

Implementation

String formatScopeEnd(LogScope scope, bool success, Duration duration) {
  final status = success ? 'done' : 'failed';
  return '${scope.label} $status. (${formatElapsed(duration)})';
}