send method

Future<Map?> send({
  1. required Map msg,
  2. bool waitResponse = false,
  3. bool skipOnMessage = false,
  4. int? timeout,
})

Implementation

Future<Map?> send({
  required Map msg,
  bool waitResponse = false,
  bool skipOnMessage = false,
  int? timeout,
}) {
  Completer<Map?> completer = Completer();
  this._send(
    msg: msg,
    waitResponse: waitResponse,
    skipOnMessage: skipOnMessage,
    timeout: timeout,
    completer: completer,
  );
  return completer.future;
}