printBoxed function Null safety

void printBoxed(
  1. String message,
  2. {String header = '--------------------------'}
)

Implementation

void printBoxed(String message,
    {String header = '--------------------------'}) {
  final pre = header;
  print("$pre\n$message\n${''.padRight(72, '-')} \n");
}