fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 933 forks source link

[ios] change to throw error if self.webview == nil #929

Closed ogata-k closed 2 years ago

ogata-k commented 3 years ago

Is it possible to change it so that it throws an error if it executes a process that expects the Webview to be initialized? If possible, change it to throw an error so that the codes of flutter can handle the error.

e.g. change from 'completionHandler(nil);' to throw an error which flutter can hadle in this code. https://github.com/fluttercommunity/flutter_webview_plugin/blob/6ab3a30353caf69eb7bd9cfc4bbe8d1e51b04e31/ios/Classes/FlutterWebviewPlugin.m#L234