getLocalPlacesSync static method

List<Place> getLocalPlacesSync()

Get local example places synchronously.

Implementation

static List<Place> getLocalPlacesSync() {
  _cachedLocalPlaces ??= kExamplePlacesData
      .map((json) => Place.fromJson(json, isLocalSource: true))
      .toList();
  return _cachedLocalPlaces!;
}