AndFilter class

Logical AND.

import 'package:database/filters.dart';

// Distance to both San Francisco and Oakland must be less than 50 kilometers.
final locationFilter = MapFilter(
  'location': AndFilter([
    GeoPointFilter(
      near: sanFrancisco,
      maxDistance: 50,
    ),
    GeoPointFilter(
      near: oakland,
      maxDistance: 50,
    ),
  ]),
);
Inheritance

Constructors

AndFilter(List<Filter> filters, {bool isImplicit: true})

Properties

children Iterable<Filter>
Returns all children/.
read-only, override
descendants Iterable<Filter>
Returns all descendants.
read-only, inherited
filters List<Filter>
final
hashCode int
The hash code for this object. [...]
read-only, override
isImplicit bool
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