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