GeoJsonQuery constructor

GeoJsonQuery({
  1. String? property,
  2. dynamic value,
  3. GeoJsonGeometryType? geometryType,
  4. bool matchCase = true,
  5. GeoSearchType searchType = GeoSearchType.exact,
})

Provide a geometryType and/or a property and value

Implementation

GeoJsonQuery({this.property, this.value, this.geometryType, this.matchCase = true, this.searchType = GeoSearchType.exact}) {
  if (geometryType == null) {
    if (property == null || value == null) {
      throw ArgumentError.notNull("Property and value must not be null if no geometry "
          "type is provided");
    }
  }
}