dispatchNotification method Null safety

Future<void> dispatchNotification(
  1. EngineNotification notification
)

Dispatch notification to all registered _dispatchers

Implementation

Future<void> dispatchNotification(EngineNotification notification) async {
  for (final dispatcher in _dispatchers) {
    await dispatcher.dispatch(notification);
  }
}