GeoPointFilter class

A Filter that matches GeoPoint values near a specified location.

import 'package:database/filters.dart';

final filter = GeoPointFilter(
  near: GeoPoint(0.0, 0.0),
  maxDistanceInMeters: 5000,
);
Inheritance

Constructors

GeoPointFilter({@required GeoPoint near, @required double maxDistanceInMeters})
const
GeoPointFilter.withMaxDistance(GeoPoint near, double maxDistance)
const

Properties

children Iterable<Filter>
Returns all children/.
read-only, override
descendants Iterable<Filter>
Returns all descendants.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, override
maxDistance double
@Deprecated('Use `maxDistanceInMeters`'), read-only
maxDistanceInMeters double
Maximum distance to near in meters.
final
near GeoPoint
Geographic point that defines valid GeoPoint values.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

accept<T, C>(FilterVisitor<T, C> visitor, C context) → T
Calls the relevant visit method in visitor.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
simplify() Filter
Simplifies the AST tree. For example, nested AND nodes are transformed into a single AND node.
override
toString() String
Returns a string built with SearchQueryPrinter.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override