dispose method
override
Frees all the resources associated with this object.
This marks the object as no longer usable and will make all methods/properties besides mounted inaccessible.
Implementation
@override
void dispose() {
if (!mounted) return;
for (final subscription in state.values) {
subscription.cancel(shouldRemove: false);
}
super.dispose();
}