alreadyExists method

bool alreadyExists(
  1. VenueLatLng _newVenue
)

checks if a given _newVenue already exists in the venues queue

Implementation

bool alreadyExists(VenueLatLng _newVenue) {
  for (var _venue in venues) {
    if (_venue.compare(_newVenue)) {
      return true;
    }
  }

  return false;
}