PrintJobAttributes class

Class representing the attributes of a PlatformPrintJobController. These attributes describe how the printed content should be laid out.

Constructors

PrintJobAttributes({PrintJobColorMode? colorMode, bool? detailedErrorReporting, PrintJobDuplexMode? duplex, String? faxNumber, double? footerHeight, bool? headerAndFooter, double? headerHeight, PrintJobPaginationMode? horizontalPagination, bool? isHorizontallyCentered, bool? isSelectionOnly, bool? isVerticallyCentered, PrintJobDisposition? jobDisposition, WebUri? jobSavingURL, String? localizedPaperName, EdgeInsets? margins, double? maximumContentHeight, double? maximumContentWidth, PrintJobMediaSize? mediaSize, bool? mustCollate, PrintJobOrientation? orientation, int? pagesAcross, int? pagesDown, String? paperName, InAppWebViewRect? paperRect, InAppWebViewRect? printableRect, PrintJobResolution? resolution, double? scalingFactor, int? time, PrintJobPaginationMode? verticalPagination})

Properties

colorMode PrintJobColorMode?
The color mode.
getter/setter pair
detailedErrorReporting bool?
If true, produce detailed reports when an error occurs.
getter/setter pair
duplex PrintJobDuplexMode?
The duplex mode to use for the print job.
getter/setter pair
faxNumber String?
A fax number.
getter/setter pair
footerHeight double?
The height of the page footer.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerAndFooter bool?
If true, a standard header and footer are added outside the margins of each page.
getter/setter pair
headerHeight double?
The height of the page header.
getter/setter pair
horizontalPagination PrintJobPaginationMode?
The horizontal pagination mode.
getter/setter pair
isHorizontallyCentered bool?
Indicates whether the image is centered horizontally.
getter/setter pair
isSelectionOnly bool?
Indicates whether only the currently selected contents should be printed.
getter/setter pair
isVerticallyCentered bool?
Indicates whether the image is centered vertically.
getter/setter pair
jobDisposition PrintJobDisposition?
The action specified for the job.
getter/setter pair
jobSavingURL WebUri?
An URL containing the location to which the job file will be saved when the jobDisposition is PrintJobDisposition.SAVE.
getter/setter pair
localizedPaperName String?
The human-readable name of the currently selected paper size, suitable for presentation in user interfaces.
getter/setter pair
margins EdgeInsets?
The margins for each printed page. Margins define the white space around the content where the left margin defines the amount of white space on the left of the content and so on.
getter/setter pair
maximumContentHeight double?
The maximum height of the content area.
getter/setter pair
maximumContentWidth double?
The maximum width of the content area.
getter/setter pair
mediaSize PrintJobMediaSize?
The media size.
getter/setter pair
mustCollate bool?
If true, collates output.
getter/setter pair
orientation PrintJobOrientation?
The orientation of the printed content, portrait or landscape.
getter/setter pair
pagesAcross int?
The number of logical pages to be tiled horizontally on a physical sheet of paper.
getter/setter pair
pagesDown int?
The number of logical pages to be tiled vertically on a physical sheet of paper.
getter/setter pair
paperName String?
The name of the currently selected paper size.
getter/setter pair
paperRect InAppWebViewRect?
The size of the paper used for printing.
getter/setter pair
printableRect InAppWebViewRect?
The area in which printing can occur.
getter/setter pair
resolution PrintJobResolution?
The supported resolution in DPI (dots per inch).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalingFactor double?
The current scaling factor.
getter/setter pair
time int?
A timestamp that specifies the time at which printing should begin.
getter/setter pair
verticalPagination PrintJobPaginationMode?
The vertical pagination to the specified mode.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) PrintJobAttributes?
Gets a possible PrintJobAttributes instance from a Map value.