dequeue method

Future dequeue(
  1. List<RawEvent> eventsToRemove
)

Removes one or multiple events from the queue @param events events to remove

Implementation

Future dequeue(List<RawEvent> eventsToRemove) async {
  await _state!.ready;
  final events = await _state!.events;
  for (var event in eventsToRemove) {
    events.remove(event);
  }
  _state!.setEvents(events);
}