longitude property

double? get longitude

The longitude of this geolocation.

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

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

Implementation

double? get longitude => _longitude;
set longitude (double? longitude)

Implementation

set longitude(double? longitude) {
  if (longitude == null || Validators.isValidLongitude(longitude)) {
    _longitude = longitude;
  } else {
    throw InvalidLongitudeException.withValue(longitude);
  }
}