on abstract method

void on(
  1. String methodName,
  2. void newMethod(
    1. List args
    )
)

Registers a handler that will be invoked when the hub method with the specified method name is invoked.

methodName The name of the hub method to define.

newMethod The handler that will be raised when the hub method is invoked.

Implementation

void on(String methodName, void Function(List<dynamic> args) newMethod);