goForward method

  1. @override
Future<void> goForward()

Goes forward in the history of this WebView.

If there is no forward history item this is a no-op.

Implementation

@override
Future<void> goForward() async {
  final int? webviewId = instanceManager.getInstanceId(this);
  if (webviewId == null) {
    throw 'Failed to get the webview instance';
  }
  await (await LinuxWebViewPlugin.channel)
      .invokeMethod('goForward', <String, dynamic>{
    'webviewId': webviewId,
  });
}