loadAllPlaces method
Load all places including encrypted if enabled.
Implementation
Future<void> loadAllPlaces({
bool forceRefresh = false,
bool? includeEncrypted,
}) async {
final result = await loadPlacesWithState(
currentPlaces: allPlaces,
forceRefresh: forceRefresh,
includeEncrypted: includeEncrypted ?? mapSettings.showEncryptedPlaces,
);
if (!mounted) return;
if (result.showLoading) {
safeSetState(this, () {});
}
if (result.hasChanges) {
safeSetState(this, () {
allPlaces = List.from(result.places);
});
}
}