setCallbackDisconnectedDevice method

void setCallbackDisconnectedDevice(
  1. String callbackId,
  2. dynamic callbackDisconnectedDevice(
    1. Device
    )
)

Sets callbackDisconnectedDevice that executes every time a device is disconnected

Implementation

void setCallbackDisconnectedDevice(
    String callbackId, Function(Device) callbackDisconnectedDevice) {
  this.callbackDisconnectedDevice[callbackId] = callbackDisconnectedDevice;
}