sendMessage method

void sendMessage(
  1. Object? value
)

Sends a message to the sendPort.

Implementation

void sendMessage(Object? value) {
  try {
    sendPort.send(MessageHubMessage(value));
  } catch (error, stackTrace) {
    inbound.sink.addError(error, stackTrace);
  }
}