* Fixed NPE

This commit is contained in:
Alex Dochioiu 2023-10-20 12:10:49 +03:00
parent c059c5a50e
commit a1e86ae8d5
1 changed files with 1 additions and 1 deletions

View File

@ -1878,7 +1878,7 @@ class InAppWebViewController {
///- MacOS ([Official API - WKWebView.canGoBack](https://developer.apple.com/documentation/webkit/wkwebview/1414966-cangoback))
Future<bool> canGoBack() async {
Map<String, dynamic> args = <String, dynamic>{};
return await _channel?.invokeMethod('canGoBack', args);
return await _channel?.invokeMethod<bool>('canGoBack', args) ?? false;
}
///Goes forward in the history of the WebView.