rowItem method

void rowItem({
  1. required int qty,
  2. required String name,
  3. required num price,
  4. FontSize size = FontSize.normal,
})

Implementation

void rowItem({
  required int qty,
  required String name,
  required num price,
  FontSize size = FontSize.normal,
}) {
  // format "qty x price"
  final priceText = '$qty x ${formatMoney(price)}';

  rowColumns([
    col(name, 7, size: size),
    colAuto(
      priceText,
      5,
      type: ReceiptTextType.money,
      size: size,
    ),
  ]);
}