presentError property

FlutterExceptionHandler presentError
getter/setter pair

Called whenever the Flutter framework wants to present an error to the users.

The default behavior is to call dumpErrorToConsole.

Plugins can override how an error is to be presented to the user. For example, the structured errors service extension sets its own method when the extension is enabled. If you want to change how Flutter responds to an error, use onError instead.


static FlutterExceptionHandler presentError = dumpErrorToConsole;