ParseGeoPoint constructor

ParseGeoPoint({
  1. double latitude = 0.0,
  2. double longitude = 0.0,
})

Creates a Parse Object of type GeoPoint

Implementation

ParseGeoPoint({this.latitude = 0.0, this.longitude = 0.0})
    : assert(
          latitude < 90, 'Latitude must be within the range (-90.0, 90.0).'),
      assert(
          latitude > -90, 'Latitude must be within the range (-90.0, 90.0).'),
      assert(latitude < 180,
          'Longitude must be within the range (-180.0, 180.0).'),
      assert(latitude > -180,
          'Longitude must be within the range (-180.0, 180.0).');