pageDown method Null safety

Future<bool> pageDown(
  1. {required bool bottom}
)

Scrolls the contents of this WebView down by half the page size. Returns true if the page was scrolled.

bottom true to jump to bottom of page.

Official Android API: https://developer.android.com/reference/android/webkit/WebView#pageDown(boolean)

Implementation

Future<bool> pageDown({required bool bottom}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent("bottom", () => bottom);
  return await _channel.invokeMethod('pageDown', args);
}