onDone method
Called whenever an event handler for a specific bloc has completed.
This may include an error and stackTrace if an uncaught exception
occurred within the event handler.
Implementation
@override
void onDone(
Bloc<dynamic, dynamic> bloc,
Object? event, [
Object? error,
StackTrace? stackTrace,
]) {
for (final observer in observers) {
observer.onDone(bloc, event, error, stackTrace);
}
}