printCurrentPage method

Future<PlatformPrintJobController?> printCurrentPage({
  1. PrintJobSettings? settings,
})

Prints the current page.

To obtain the PlatformPrintJobController, use settings argument with PrintJobSettings.handledByClient to true. Otherwise this method will return null and the PlatformPrintJobController will be handled and disposed automatically by the system.

NOTE for Android: available on Android 19+.

NOTE for MacOS: PlatformPrintJobController is available on MacOS 11.0+.

NOTE for Web: this method will have effect only if the iframe has the same origin. Also, PlatformPrintJobController is always null.

Officially Supported Platforms/Implementations:

Implementation

Future<PlatformPrintJobController?> printCurrentPage(
    {PrintJobSettings? settings}) {
  throw UnimplementedError(
      'printCurrentPage is not implemented on the current platform');
}