PrintJobState class

Class representing the state 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() int
Gets int value.

Operators

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

Static Properties

BLOCKED PrintJobState
Print job state: The print job is blocked.
final
CANCELED PrintJobState
Print job state: The print job is canceled. This is a terminal state.
final
COMPLETED PrintJobState
Print job state: The print job is successfully printed. This is a terminal state.
final
CREATED PrintJobState
Print job state: The print job is being created but not yet ready to be printed.
final
FAILED PrintJobState
Print job state: The print job was printing but printing failed.
final
QUEUED PrintJobState
Print job state: The print jobs is created, it is ready to be printed and should be processed.
final
STARTED PrintJobState
Print job state: The print job is being printed.
final
values Set<PrintJobState>
Set of all values of PrintJobState.
final

Static Methods

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