processQueue method Null safety
Processes the queue sequentially
Implementation
Future<void> processQueue() async {
if (_isDispatching || _queue.isEmpty) return;
_isDispatching = true;
while (_queue.isNotEmpty) {
final notification = _queue.removeFirst();
Get.log('Processing $notification');
await NotificationDispatchers.instance.dispatchNotification(notification);
}
_isDispatching = false;
}