cancelAt method
Unsubscribe to a StreamSubscription with a specified index and remove it from list
For example:
subxList.cancelAt(0);
Implementation
Future<bool> cancelAt(int index) async {
if (index <= length - 1) {
final subscription = _subscriptionList.removeAt(index);
await subscription.cancel();
return true;
}
return false;
}