withinSquare method Null safety

void withinSquare(
  1. String key,
  2. NCMBGeoPoint southWestVertex,
  3. NCMBGeoPoint northEastVertex
)

指定したフィールドの値が、指定した位置情報の指定した範囲内に存在することを検索条件に追加する key フィールド名 southWestVertex 南西の位置情報(実際には四角の1点を示していればOK) northEastVertex 北東の位置情報(実際には四角の1点を示していればOK)

Implementation

void withinSquare(
    String key, NCMBGeoPoint southWestVertex, NCMBGeoPoint northEastVertex) {
  var box = {
    '\$box': [southWestVertex.toJson(), northEastVertex.toJson()]
  };
  setOperand(key, box, ope: '\$within');
}