latitude function

double latitude()

Return the latitude of the address of the current user.

Returns: The latitude of the address of the restaurant.

Implementation

double latitude() {
  final randomAddress = address();
  if (randomAddress.coordinates?.latitude == null) {
    return latitude();
  }
  return randomAddress.coordinates!.latitude!;
}