col method

PosColumn col(
  1. String text,
  2. int width, {
  3. FontSize size = FontSize.normal,
  4. bool bold = false,
  5. PosAlign align = PosAlign.left,
})

Helper to create PosColumn with mapped styles (so user doesn't need to import PosStyles)

Implementation

PosColumn col(
  String text,
  int width, {
  FontSize size = FontSize.normal,
  bool bold = false,
  PosAlign align = PosAlign.left,
}) {
  return PosColumn(
    text: text,
    width: width,
    styles: ThermalFontMapper.style(size, bold: bold, align: align),
  );
}