PosColumn constructor

PosColumn({
  1. String text = '',
  2. Uint8List? textEncoded,
  3. bool containsChinese = false,
  4. int width = 2,
  5. PosStyles styles = const PosStyles(),
})

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');
  }
}