setCallbackPendingAcceptConnection method
void
setCallbackPendingAcceptConnection()
Sets callbackConnectionInitiated callback that executes every time a connection needs to be accepted.
Implementation
void setCallbackPendingAcceptConnection(
String callbackId, Function(Device) callbackPendingAcceptConnection) {
this.callbackPendingAcceptConnection[callbackId] =
callbackPendingAcceptConnection;
}