line static method

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

Draws a line on the receipt

Implementation

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