hr method
Print horizontal full width separator
If len
is null, then it will be defined according to the paper width
Implementation
List<int> hr({String ch = '-', int? len, int linesAfter = 0}) {
List<int> bytes = [];
int n = len ?? _maxCharsPerLine ?? _getMaxCharsPerLine(_styles.fontType);
String ch1 = ch.length == 1 ? ch : ch[0];
bytes += text(List.filled(n, ch1).join(), linesAfter: linesAfter);
return bytes;
}