onError property
[final Function(bool, Object) onError;[ is declaring an instance variable [onError[ of type [Function[ that takes two parameters: a [bool[ and an [Object[. This variable is used to pass a callback function to the [InAppWebView[ widget that will be called when an error occurs during the loading of a web page in the WebView. The [bool[ parameter indicates whether the error is a network error or not, and the [Object[ parameter contains additional information about the error. The callback function can be used to handle the error in a custom way, such as displaying an error message to the user or logging the error for debugging purposes.
Implementation
final Function(bool, Object) onError;