MapFilter class

A filter for maps.

import 'package:database/filters.dart';

final filter = MapFilter({
  'ingredients': ListFilter(
    items: AndFilter([StringFilter('chicken'), StringFilter('rice')])
  ),
});
Inheritance

Constructors

MapFilter(Map<String, Filter> properties)

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
properties Map<String, Filter>
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.
inherited
toString() String
Returns a string built with SearchQueryPrinter.
inherited

Operators

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