goBack method
Goes back in the history of the WebView.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.goBack)
- iOS (Official API - WKWebView.goBack)
- MacOS (Official API - WKWebView.goBack)
- Web (Official API - History.back)
- Windows (Official API - ICoreWebView2.GoBack)
Implementation
@override
Future<void> goBack() async {
Map<String, dynamic> args = <String, dynamic>{};
await channel?.invokeMethod('goBack', args);
}