InvalidCoordinateException.invalidLongitude constructor
InvalidCoordinateException.invalidLongitude(
- double value
Creates an exception for invalid longitude.
Implementation
factory InvalidCoordinateException.invalidLongitude(double value) {
return InvalidCoordinateException(
'Longitude must be between -180 and 180 degrees. Got: $value',
longitude: value,
code: 'INVALID_LONGITUDE',
);
}