onDisconnect method

void onDisconnect(
  1. void callback()
)

Sets onDisconnectCallback

Implementation

void onDisconnect(void Function() callback) {
  throw UnsupportedError("Platform is not Supported");
}