unsubscribeConsumingFailed method

void unsubscribeConsumingFailed(
  1. dynamic callback(
    1. String,
    2. Exception
    )
)

Unsubscribes the callback from the ConsumingFailed-Event.

The callback needs to be exactly the same as the one used while subscribing.

Implementation

void unsubscribeConsumingFailed(Function(String, Exception) callback) {
  _callbacksConsumingFailed.remove(callback);
}