onPrint method Null safety

void onPrint(
  1. Uri? url
)

Event fired when window.print() is called from JavaScript side.

url represents the url on which is called.

NOTE: available on Android 21+.

Implementation

void onPrint(Uri? url) {}