formatScopeEnd method
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)})';
}