PrintRequest class

What to print and how many times.

Constructors

PrintRequest({required PrintTemplate template, required PaperFormat paper, required String localeName, Map<String, dynamic> sampleData = const {}, String? pageNotice, int copies = 1, List<Map<String, dynamic>>? cellData, List<int> skippedPerSheet = const [], bool showCutGuides = false, bool singleCellPage = false})
const

Properties

cellData → List<Map<String, dynamic>>?
Data of each label, in print order (one entry per label). When null, every cell shows the example data of the template.
final
copies → int
Number of labels or signs to print. Ignored by reports and when cellData is given.
final
hashCode → int
The hash code for this object.
no setterinherited
localeName → String
Locale used to format numbers and dates printed by the template.
final
pageNotice → String?
Small text printed at the bottom right of every page, e.g. a notice that the figures are examples. Null prints nothing.
final
paper → PaperFormat
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleData → Map<String, dynamic>
Fields shown when cellData is null: example values the app gives so templates can be previewed without real data.
final
showCutGuides → bool
Draws the outline of every cell. Used only by the on-screen preview, never on the printed page.
final
singleCellPage → bool
Renders one label or sign on a page of its own size, used for thumbnails and the close-up preview of sheet formats.
final
skippedPerSheet → List<int>
Positions already used at the start of each sheet (sheet 1 first): printing starts after them, so partly used adhesive sheets are not wasted. Missing entries count as 0; ignored by rolls.
final
template → PrintTemplate
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited