on abstract method

void on(
  1. dynamic callback(
    1. RelayEvent
    )
)

Registers a callback function to be invoked when relay events occur.

Implementation

void on(Function(RelayEvent) callback);