withIn method

GeoPointBuilder withIn([
  1. List<BmobGeoPoint> box = const []
])

距离中心点的最大距离 radians (公里)

Implementation

GeoPointBuilder withIn([List<BmobGeoPoint> box = const []]) {
  if (box.isNotEmpty) {
    _json['\$within'] = {"$box": box.map((e) => e.toJson()).toList()};
  } else {
    _json.remove('\$within');
  }
  return this;
}