dismiss method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform()])
Future<void> dismiss({
  1. bool animated = true,
})

Dismisses the printing-options sheet or popover.

You should dismiss the printing options when they are presented in a sheet or animated from a rectangle and the user changes the orientation of the device. (This, of course, assumes your application responds to orientation changes.) You should then present the printing options again once the new orientation takes effect.

Officially Supported Platforms/Implementations:

  • iOS WKWebView

Parameters - Officially Supported Platforms/Implementations:

  • animated: all platforms

Use the PlatformPrintJobController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(platforms: [IOSPlatform()])
Future<void> dismiss({bool animated = true}) {
  throw UnimplementedError(
    'dismiss is not implemented on the current platform',
  );
}