unlisten method

void unlisten(
  1. dynamic callback(
    1. ValueUpdate update
    )
)

Implementation

void unlisten(Function(ValueUpdate update) callback) {
  if (callbacks.containsKey(callback)) {
    var cacheLevel = callbacks.remove(callback);
    if (callbacks.isEmpty) {
      requester._subscription.removeSubscription(this);
    } else if (cacheLevel == currentQos && currentQos > 1) {
      updateQos();
    }
  }
}