addNotification method Null safety

Future<void> addNotification(
  1. EngineNotification notification
)

Add a notification to the queue

Implementation

Future<void> addNotification(EngineNotification notification) async {
  _queue.add(notification);
  await processQueue();
}