offAck<T extends DataObject> method
Removes a callback for when an Acknowledged of a DataObject of type
T
is received.
Implementation
void offAck<T extends DataObject>(
void Function(Acknowledged<T> data) callback,
) {
for (final subscription
in _ackSubscriptions.whereType<StreamSubscription<Acknowledged<T>>>()) {
if (subscription.onData == callback) {
subscription.cancel();
_ackSubscriptions.remove(subscription);
break;
}
}
}