setOnConnectionHandler method
void
setOnConnectionHandler(
- 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;
}