enqueue method

void enqueue({
  1. required RelayerRequest relayerRequest,
  2. required int id,
  3. required Completer completer,
})

Implementation

void enqueue(
    {required RelayerRequest relayerRequest,
    required int id,
    required Completer completer}) {
  _queue.add(relayerRequest);
  _messageHandlers[id] = completer;
  _dequeue();
}