withinSquare method Null safety

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

Implementation

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