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.isNotEmpty && textEncoded != null && textEncoded!.isNotEmpty) {
throw Exception(
'Only one parameter - text or textEncoded - should be passed');
}
}