onError method
Called whenever an error
is thrown in any Controller or StateController.
The stackTrace
argument may be StackTrace.empty if an error
was received without a stack trace.
Implementation
@protected
@mustCallSuper
void onError(
BaseController controller, Object error, StackTrace stackTrace) {}