on abstract method
Sets a callback function to be called when events occur on the relay.
The callback
function should take a single argument of type RelayEvent.
Implementation
void on(Function(RelayEvent) callback);
Sets a callback function to be called when events occur on the relay.
The callback
function should take a single argument of type RelayEvent.
void on(Function(RelayEvent) callback);