unsubscribe method

void unsubscribe(
  1. int subscriptionId
)

Implementation

void unsubscribe(int subscriptionId) {
  if (_notifyCbMap.containsKey(subscriptionId)) {
    _channel.invokeMethod('unsubscribe', {"subscriptionId": subscriptionId});
    _notifyCbMap.remove(subscriptionId);
    _subscriptionErrorCbMap.remove(subscriptionId);
  }
}