isTourExist method

Future<bool> isTourExist(
  1. String tourName
)

Check if a tour is in the list

Implementation

Future<bool> isTourExist(String tourName) async {
  final tours = await getToursList();
  return tours.any((tour) => tour.query == tourName);
}