canGoBackOrForward method Null safety

Future<bool> canGoBackOrForward(
  1. {required int steps}
)

Returns a boolean value indicating whether the WebView can go back or forward the given number of steps. Steps is negative if backward and positive if forward.

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

Implementation

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