add method
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. If event
is not isolate-safe data, an error is
delivered to listen on this isolate. See SendPort.send for more details.
Implementation
@override
void add(Object? event) {
sendMessage(event);
}