PrintJobController class
Class representing a print job eventually returned by PlatformInAppWebViewController.printCurrentPage.
Constructors
- PrintJobController({required String id})
- Class representing a print job eventually returned by PlatformInAppWebViewController.printCurrentPage.
- PrintJobController.fromPlatform({required PlatformPrintJobController platform})
- Constructs a PrintJobController from a specific platform implementation.
- PrintJobController.fromPlatformCreationParams({required PlatformPrintJobControllerCreationParams params})
- Constructs a PrintJobController.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setter
- onComplete ↔ PrintJobCompletionHandler?
-
A completion handler used to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.
getter/setter pair
- platform → PlatformPrintJobController
-
Implementation of PlatformPrintJobController for the current platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → Future< void> - Cancels this print job. You can request cancellation of a queued, started, blocked, or failed print job.
-
dismiss(
{bool animated = true}) → Future< void> - Dismisses the printing-options sheet or popover.
-
dispose(
) → void - Disposes the print job.
-
getInfo(
) → Future< PrintJobInfo?> - Gets the PrintJobInfo that describes this job.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restart(
) → Future< void> - Restarts this print job. You can request restart of a failed print job.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isClassSupported(
{TargetPlatform? platform}) → bool -
Check if the current class is supported by the defaultTargetPlatform or a specific
platform. -
isMethodSupported(
PlatformPrintJobControllerMethod method, {TargetPlatform? platform}) → bool -
Check if the given
methodis supported by the defaultTargetPlatform or a specificplatform. -
isPropertySupported(
dynamic property, {TargetPlatform? platform}) → bool -
Check if the given
propertyis supported by the defaultTargetPlatform or a specificplatform. The property should be one of the PlatformPrintJobControllerProperty or PlatformPrintJobControllerCreationParamsProperty values.