onError method
inherited
Called whenever an error
is thrown within mapEventToState.
By default all error
s will be ignored and bloc
functionality will be unaffected.
The stacktrace
argument may be null
if the state stream received an error without a stacktrace
.
A great spot to handle errors at the individual Bloc
level.
Implementation
void onError(Object error, StackTrace stacktrace) => null;