onError property

ErrorListener? onError
getter/setter pair

A callback for error reporting if one of the listeners added with addListener throws.

This callback should not throw.

It exists for error reporting (mainly FlutterError.onError), and should not be used otherwise.
If you need an error status, consider adding an error property on your custom state.

If no onError is specified, fallbacks to Zone.current.handleUncaughtError.


ErrorListener? onError;