PaperFormat.single constructor

const PaperFormat.single({
  1. required double widthMm,
  2. required double heightMm,
})

A single page as big as widthMm x heightMm, used when a template points to a paper format that no longer exists.

Implementation

const PaperFormat.single({required double widthMm, required double heightMm})
  : id = '',
    name = '',
    feed = PaperFeed.roll,
    pageWidthMm = widthMm,
    pageHeightMm = heightMm,
    columns = 1,
    rows = 1,
    cellWidthMm = widthMm,
    cellHeightMm = heightMm,
    marginTopMm = 0,
    marginLeftMm = 0,
    gapXMm = 0,
    gapYMm = 0;