currentException property

dynamic currentException

The latest exception to have been thrown by handleAction. Useful for when wanting to customise a page based on an error.

This property is removed automatically on the next firstRender of a page.

Implementation

dynamic get currentException => _currentException;
void currentException=(dynamic newError)

Manually set an exception on a page, regardless of the result of handleAction

Implementation

set currentException(dynamic newError) {
  _currentException = newError;
  notifyListeners();
}