latitude property

double? get latitude

The latitude of this geolocation.

Latitude (north or south) always precedes longitude (east or west).

Throws InvalidLongitudeException if latitude is set to a value that is not between -90 and 90 (inclusive).

Implementation

double? get latitude => _latitude;
set latitude (double? latitude)

Implementation

set latitude(double? latitude) {
  if (latitude == null || Validators.isValidLatitude(latitude)) {
    _latitude = latitude;
  } else {
    throw InvalidLatitudeException.withValue(latitude);
  }
}