pageUp method Null safety

Future<bool> pageUp(
  1. {required bool top}
)

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

bottom true to jump to the top of the page.

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

Implementation

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