goBack method

  1. @override
Future<void> goBack()

Goes back in the history of this WebView.

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

Implementation

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