resetActivities method
Use this when you want to clear current state & event listeners that are connected and are active.
Implementation
@mustCallSuper
void resetActivities() {
for (var sub in _subscriptions) {
sub.cancel();
}
_subscriptions.clear();
_errorController.close();
_stateController.close();
}