PrintDataProvider class abstract
What the app tells the print library about its data. The library knows how to manage, design and print templates; the app knows what the fields mean and where the data comes from.
Constructors
- PrintDataProvider()
-
const
Properties
- canPickRows → bool
-
Whether pickRows is available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptsRows(
PrintTemplate template) → bool -
Whether the rows of a print job can be printed with
template. -
designerSettings(
BuildContext context, PrintTemplate template, ValueChanged< PrintTemplate> onChanged) → Widget? -
Extra controls shown in the designer bar for the app PrintTemplate.settings
of
template(e.g. how the app formats a field).onChangedreceives the template with the new settings. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pageNotice(
BuildContext context, PrintTemplate template) → String? -
Small text printed at the bottom of every page of
template, e.g. a notice that the figures are examples. Null prints nothing. -
pickRows(
BuildContext context) → Future< PrintJob?> - Lets the user choose more rows to print ("Add label"). Returns null when nothing was chosen; returning canPickRows false hides the button.
-
sampleData(
BuildContext context, PrintTemplate template) → Map< String, dynamic> -
Example fields of
template, used by thumbnails, previews and the designer (where they also list the draggable fields). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited