pause method

Future<void> pause()

Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. Note that this call does not pause JavaScript. To pause JavaScript globally, use InAppWebViewController.pauseTimers. To resume WebView, call resume.

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

Implementation

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