line method Null safety

Future<void> line(
  1. {String ch = '-',
  2. int len = 31}
)

line

With this method you can draw a line to divide sections.

Implementation

static Future<void> line({
  String ch = '-',
  int len = 31,
}) async {
  resetFontSize();
  await printText(List.filled(len, ch[0]).join());
}