remove method

Future<void>? remove(
  1. StreamSubscription subscription, {
  2. bool shouldCancel = true,
})

Remove the subscription from this composite and cancel it if it has been removed.

Implementation

Future<void>? remove(
  StreamSubscription<dynamic> subscription, {
  bool shouldCancel = true,
}) =>
    _subscriptionsList.remove(subscription) && shouldCancel
        ? subscription.cancel()
        : null;