printCurrentPage method Null safety

Future<void> printCurrentPage()

Prints the current page.

NOTE: available on Android 21+.

Official Android API: https://developer.android.com/reference/android/print/PrintManager

Official iOS API: https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller

Implementation

Future<void> printCurrentPage() async {
  Map<String, dynamic> args = <String, dynamic>{};
  await _channel.invokeMethod('printCurrentPage', args);
}