GeoPoint constructor

const GeoPoint(
  1. double latitude,
  2. double longitude
)

Constructs a geographical point with latitude and longitude.

Example:

final sanFrancisco = GeoPoint(37.7749, -122.4194);

Implementation

const GeoPoint(this.latitude, this.longitude)
    : assert(latitude != null),
      assert(latitude >= -180.0),
      assert(latitude <= 180.0),
      assert(longitude != null),
      assert(longitude >= -180.0),
      assert(longitude <= 180.0);