add method Null safety

void add(
  1. T value
)

Adds an event to this server.

Implementation

void add(T value) {
  if (_completerQueue.isNotEmpty) {
    _completerQueue.removeAt(0).complete(value);
  } else {
    _queue.add(value);
  }
}