removeNamedCallback method

void removeNamedCallback(
  1. String callbackKey
)

Removes a named callback in all callback collections

Implementation

void removeNamedCallback(String callbackKey) {
  // TODO: Find a better way to do this
  callbackPendingAcceptConnection.remove(callbackKey);
  callbackConnectionRejected.remove(callbackKey);
  callbackConnectionInitiated.remove(callbackKey);
  callbackDisconnectedDevice.remove(callbackKey);
  callbackSuccessfulConnection.remove(callbackKey);
  callbackReceivedMessage.remove(callbackKey);
}