PlacesService class

Constructors

PlacesService()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

addPlace(Place place, BuildContext context, Widget returnWidget) → Future<bool>
clearAllPlaces(BuildContext context, Widget returnWidget) → Future<bool>
clearCache() → Future<void>
clearPodCacheOnly() → Future<void>
deletePlace(String placeId, BuildContext context, Widget returnWidget) → Future<bool>
deletePlaceByFilePath(String filePath, BuildContext context, Widget returnWidget) → Future<bool>
Delete a place by its individual file path. This is called when a user deletes place_xxx.json from the file browser. It will also remove the place from the main places.json file.
exportPlaces(List<Place> places) → Future<bool>
fetchEncryptedPlaces({bool forceRefresh = false}) → Future<List<Place>>
Fetch encrypted places from Pod. Returns empty list if not logged in or no security key available. NOTE: Will not prompt for security key - use EncryptedPlacesService directly if you need to prompt the user.
fetchPlaces({bool forceRefresh = false, bool includeEncrypted = false}) → Future<List<Place>>
fetchPodPlaces({bool forceRefresh = false}) → Future<List<Place>>
getLocalPlacesSync() → List<Place>
Get local example places synchronously.
importPlaces() → Future<ImportResult>
isIndividualPlaceFile(String filePath) → bool
Check if a file path is an individual place file.
isMainPlacesFile(String filePath) → bool
Check if a file path is a places.json file.
loadLocalPlaces() → Future<List<Place>>
Load local example places (async wrapper for API compatibility). NOTE: Prefer using getLocalPlacesSync() directly as local places are now compiled into the app and don't require async loading.
mergeImportedPlaces(List<Place> imported, BuildContext context, Widget returnWidget, {void onProgress(int, int)?}) → Future<bool>
refreshPodDataOnly() → Future<List<Place>>
updatePlace(Place updated, BuildContext context, Widget returnWidget, {bool coordinatesChanged = false}) → Future<bool>