printfBox function
void
printfBox(
- String title,
- Object? message, {
- PrintfLevel level = PrintfLevel.info,
- String? tag,
Prints a titled box around message.
Implementation
void printfBox(
String title,
Object? message, {
PrintfLevel level = PrintfLevel.info,
String? tag,
}) {
final body = _formatPayload(message);
printf(
'${printfSeparator(object: title, length: 12)}\n$body\n${printfSeparator(length: 40)}',
tag: tag,
level: level,
timestamp: true,
);
}