registerSubscription method

void registerSubscription(
  1. StreamSubscription? subscription
)
inherited

Implementation

void registerSubscription(StreamSubscription? subscription) {
  if (subscription != null) {
    registerDisposer(subscription.cancel);
  }
}