sendToParent method

void sendToParent(
  1. S obj
)

Sends data to the parent isolate.

Implementation

void sendToParent(S obj) {
  final payload = ChildIsolateData<S, R>(id: id, data: obj);
  _sender.send(payload);
}