setOnConnectionHandler method

void setOnConnectionHandler(
  1. dynamic callback
)

Implementation

void setOnConnectionHandler(dynamic callback) {
  if (callback == null) {
    print("Callback parameter in setOnConnectionHandler method is required.");
    return;
  }

  _channel.invokeMethod("setOnConnectionHandler");

  this._onConnectionHandler = callback;
}