handleInternalError method
Handles internal errors that occur within the bloc.
Takes an error
argument representing the error that occurred.
Logs the error to the console.
Implementation
@override
@protected
void handleInternalError(dynamic error, StackTrace stackTrace) {
debugLog(
'Internal Bloc error occured',
value: error,
debugLabel: debugLabel,
);
debugLog(
'Stacktrace',
value: stackTrace,
debugLabel: debugLabel,
);
}