PosColumn constructor
PosColumn({})
Implementation
PosColumn({
this.text = '',
this.textEncoded,
this.containsChinese = false,
this.width = 2,
this.styles = const PosStyles(),
}) {
if (width < 1 || width > 12) {
throw Exception('Column width must be between 1..12');
}
if (text.length > 0 && textEncoded != null && textEncoded!.length > 0) {
throw Exception('Only one parameter - text or textEncoded - should be passed');
}
}