keepSynced method
By calling keepSynced(true) on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location. Additionally, while a location is kept synced, it will not be evicted from the persistent disk cache.
Implementation
Future<void> keepSynced(bool value) {
return _database._channel.invokeMethod<void>(
'Query#keepSynced',
<String, dynamic>{
'app': _database.app?.name,
'databaseURL': _database.databaseURL,
'path': path,
'parameters': _parameters,
'value': value
},
);
}