removeJoinListener method
void
removeJoinListener(
- Function callback
)
Implementation
void removeJoinListener(Function callback) {
List<int> handles = _findCallbacks(BackendlessMessaging._joinCallbacks,
(eventCallback) => eventCallback.handleResponse == callback);
handles.forEach((handle) {
_methodChannel.invokeMethod(
"Backendless.Messaging.Channel.removeJoinListener",
<String, dynamic>{"channelHandle": _channelHandle, 'handle': handle});
BackendlessMessaging._joinCallbacks.remove(handle);
});
}