canGoForward method

  1. @override
Future<bool> canGoForward()

Checks whether there's a forward history item.

Implementation

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