pathToAvailableDataIds property
String
get
pathToAvailableDataIds
The path to the list of available ids inside the database.
Implementation
String get pathToAvailableDataIds => _pathToAvailableDataIds;
set
pathToAvailableDataIds
(String newPath)
This will cancel all database subscriptions, then clear all data, then listen to the new path of ids
Implementation
set pathToAvailableDataIds(String newPath) {
_availableDataIdsAddedSubscription.cancel();
_availableDataIdsRemovedSubscription.cancel();
_dataSubscriptions.forEach((id, sub) => sub.cancel());
super.clear();
_pathToAvailableDataIds = newPath;
_listenToDatabase();
}