isValid property
Whether these coordinates are within valid Earth ranges.
Implementation
bool get isValid =>
latitude >= -90 &&
latitude <= 90 &&
longitude >= -180 &&
longitude <= 180;
Whether these coordinates are within valid Earth ranges.
bool get isValid =>
latitude >= -90 &&
latitude <= 90 &&
longitude >= -180 &&
longitude <= 180;