addEncryptedPlace static method

Future<bool> addEncryptedPlace(
  1. Place place,
  2. BuildContext context,
  3. Widget child
)

Add a single encrypted place. Uses local cache to avoid fetching from server if available. IMPORTANT: If cache is empty, ensures security key is available before fetching existing places to prevent data loss.

Implementation

static Future<bool> addEncryptedPlace(
  Place place,
  BuildContext context,
  Widget child,
) async {
  return addEncryptedPlacesBatch([place], context, child);
}