setInterceptFileChooserDialog method
Intercept file chooser requests and transfer control to protocol clients.
When file chooser interception is enabled, native file chooser dialog is not shown.
Instead, a protocol event Page.fileChooserOpened is emitted.
cancel If true, cancels the dialog by emitting relevant events (if any)
in addition to not showing it if the interception is enabled
(default: false).
Implementation
Future<void> setInterceptFileChooserDialog(
  bool enabled, {
  bool? cancel,
}) async {
  await _client.send('Page.setInterceptFileChooserDialog', {
    'enabled': enabled,
    if (cancel != null) 'cancel': cancel,
  });
}