addPlace method

Future<void> addPlace(
  1. PlacesModel place
)

Add a PlaceModel to the list

Implementation

Future<void> addPlace(PlacesModel place) async {
  final places = await getPlacesList();
  places.add(place);
  await savePlacesList(places);
}