pauseTimers method Null safety

Future<void> pauseTimers()

On Android, it pauses all layout, parsing, and JavaScript timers for all WebViews. This is a global requests, not restricted to just this WebView. This can be useful if the application has been paused.

On iOS, it is restricted to just this WebView.

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

Implementation

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