clear method
void
clear()
Cancels all subscriptions added to this composite. Clears subscriptions collection.
This composite can be reused after calling this method.
Implementation
void clear() {
_subscriptionsList.forEach((it) => it.cancel());
_subscriptionsList.clear();
}