add method Null safety

  1. @override
void add(
  1. dynamic event
)
override

Sends a message to all other hubs.

event will be delivered to all other isolates that have set up a callback for listen.

event must be isolate-safe data - in general, this means it may not be or contain a closure. Consult the API reference dart:isolate for more details. If event is not isolate-safe data, an error is delivered to listen on this isolate.

Implementation

@override
void add(dynamic event) {
  _outboundController.sink.add(event);
}