dispose method
void
dispose()
Implementation
void dispose() {
//
goOffline();
_db = null;
_dbReference = null;
_onceListeners.clear();
_addedListeners.clear();
_removedListeners.clear();
_changedListeners.clear();
_movedListeners.clear();
_valueListeners.clear();
_app = null;
for (final sub in _addedSubscription) {
sub.cancel();
}
_addedSubscription.clear();
for (final sub in _removedSubscription) {
sub.cancel();
}
_removedSubscription.clear();
for (final sub in _changedSubscription) {
sub.cancel();
}
_changedSubscription.clear();
for (final sub in _movedSubscription) {
sub.cancel();
}
_movedSubscription.clear();
for (final sub in _valueSubscription) {
sub.cancel();
}
_valueSubscription.clear();
}