addSubscription method
Implementation
VoidCallback addSubscription(SubscriptionCallback builder) {
late VoidCallback cancel;
_cancelCallbacks
.add(cancel = builder(() => _cancelCallbacks.remove(cancel)));
return cancel;
}
VoidCallback addSubscription(SubscriptionCallback builder) {
late VoidCallback cancel;
_cancelCallbacks
.add(cancel = builder(() => _cancelCallbacks.remove(cancel)));
return cancel;
}