GeoPoint constructor
Creates a new GeoPoint with the given latitude and longitude.
Throws AssertionError if coordinates are out of valid range.
Example:
final sf = GeoPoint(
latitude: 37.7749,
longitude: -122.4194,
);
Implementation
const GeoPoint({
required this.latitude,
required this.longitude,
}) : assert(latitude >= -90 && latitude <= 90,
'Latitude must be between -90 and 90'),
assert(longitude >= -180 && longitude <= 180,
'Longitude must be between -180 and 180');