LatLng constructor

LatLng(
  1. double latitude,
  2. double longitude
)

Implementation

LatLng(this.latitude, this.longitude)
    : assert(latitude >= -90 && latitude <= 90, '纬度范围为[-90, 90]!'),
      assert(longitude >= -180 && longitude <= 180, '经度范围为[-180, 180]!');