onComplete property

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.

Officially Supported Platforms/Implementations:

Implementation

PrintJobCompletionHandler? get onComplete => platform.onComplete;
void onComplete=(PrintJobCompletionHandler? handler)

Implementation

void set onComplete(PrintJobCompletionHandler? handler) {
  platform.onComplete = handler;
}