contains method

bool contains(
  1. LatLng point
)

判断矩形区域是否包含传入的经纬度point.

Implementation

bool contains(LatLng point) {
  try {
    return _containsLatitude(point.latitude) &&
        _containsLongitude(point.longitude);
  } catch (e) {
    debugPrint(e.toString());
  }
  return false;
}