removeTour method

Future<void> removeTour(
  1. String tourName
)

Remove a SavedToursModel from the list

Implementation

Future<void> removeTour(String tourName) async {
  final tours = await getToursList();
  tours.removeWhere((tour) => tour.query == tourName);
  await saveToursList(tours);
}