PrintJobDuplexMode class

Class representing the orientation of a PlatformPrintJobController.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() int?
Gets int native value if supported by the current platform, otherwise null.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

LONG_EDGE PrintJobDuplexMode
Duplex printing that flips the back page along the long edge of the paper. Pages are turned sideways along the long edge - like a book.
final
NONE PrintJobDuplexMode
No double-sided (duplex) printing; single-sided printing only.
final
SHORT_EDGE PrintJobDuplexMode
Duplex print that flips the back page along the short edge of the paper. Pages are turned upwards along the short edge - like a notepad.
final
values Set<PrintJobDuplexMode>
Set of all values of PrintJobDuplexMode.
final

Static Methods

asNameMap() Map<String, PrintJobDuplexMode>
Creates a map from the names of PrintJobDuplexMode values to the values.
byName(String? name) PrintJobDuplexMode?
Gets a possible PrintJobDuplexMode instance value with name name.
fromNativeValue(int? value) PrintJobDuplexMode?
Gets a possible PrintJobDuplexMode instance from a native value.
fromValue(String? value) PrintJobDuplexMode?
Gets a possible PrintJobDuplexMode instance from String value.