PdfDocumentSaveCancellationToken class
Cooperative cancellation for PdfDocumentSaving.saveTo.
Cancellation is checked before encoding and between writes. An already-started write is awaited before resources are released; cancellation cannot interrupt a destination that never completes its write or a synchronous PDFium operation.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancelled → bool
-
Whether cancellation has been requested.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Requests cancellation. Calling this more than once is harmless.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throwIfCancelled(
) → void - Throws PdfDocumentSaveCancelledException if cancellation was requested.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited