withinKilometers method Null safety

void withinKilometers(
  1. String key,
  2. NCMBGeoPoint geo,
  3. double maxDistance
)

指定したフィールドの値が、指定した位置情報の指定したキロメートル以内に存在することを検索条件に追加する key フィールド名 geo 位置情報 maxDistance 最大距離(キロメートル)

Implementation

void withinKilometers(String key, NCMBGeoPoint geo, double maxDistance) {
  setOperand(key, maxDistance, ope: '\$maxDistanceInKilometers');
  setOperand(key, geo.toJson(), ope: '\$nearSphere');
}