printfBox function

void printfBox(
  1. String title,
  2. Object? message, {
  3. PrintfLevel level = PrintfLevel.info,
  4. 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,
  );
}