save method

Uint8List save()

save API.

Implementation

Uint8List save() {
  return _trade(
    skin: SheetSkin.receipt,
    direction: direction,
    theme: theme,
    font: font,
    fontBold: fontBold,
    start: seller,
    end: buyer,
    labels: labels,
    number: number,
    date: date,
    extra: method,
    columns: <String>[labels.description, labels.amount],
    rows: <SheetRow>[
      for (final TradeLine line in lines)
        SheetRow(<String>[line.description, line.amount]),
    ],
    totals: totals,
    notes: notes,
    footer: footer,
    signs: const <SignSlot>[],
  );
}