setCallbackSuccessfulConnection method

void setCallbackSuccessfulConnection(
  1. String callbackId,
  2. dynamic callbackSuccessfulConnection(
    1. Device
    )
)

Sets callbackSuccessfulConnection callback that executes every time a connection successfully finishes.

Implementation

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