InvalidCoordinateException.invalidLongitude constructor

InvalidCoordinateException.invalidLongitude(
  1. 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',
  );
}