LatLngBounds constructor

LatLngBounds({
  1. required LatLng southwest,
  2. required LatLng northeast,
})

使用传入的西南角坐标southwest和东北角坐标northeast创建一个矩形区域.

Implementation

LatLngBounds({required this.southwest, required this.northeast}) {
  try {
    assert(southwest.latitude <= northeast.latitude,
        '西南角纬度超过了东北角纬度(${southwest.latitude} > ${northeast.latitude})');
  } catch (e) {
    debugPrint(e.toString());
  }
}