onDone method

  1. @override
void onDone(
  1. Bloc bloc,
  2. Object? event, [
  3. Object? error,
  4. StackTrace? stackTrace,
])
override

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);
  }
}