unsubscribeInvalidMessageReceived method

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

Unsubscribes the callback from the InvalidMessageReceived-Event.

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

Implementation

void unsubscribeInvalidMessageReceived(Function(String, Exception) callback) {
  _callbacksForInvalidMessage.remove(callback);
}