remove method
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;