BooleanSelector class

A boolean expression that evaluates to true or false based on certain inputs.

The syntax is mostly Dart's expression syntax restricted to boolean operations. See the README for full details.

Boolean selectors support structural equality. Two selectors that have the same parsed structure are considered equal.

Constructors

BooleanSelector.parse(String selector)
Parses selector. [...]
factory

Properties

variables Iterable<String>
All the variables in this selector, in the order they appear.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

evaluate(dynamic semantics) bool
Returns whether the selector matches the given semantics. [...]
intersection(BooleanSelector other) BooleanSelector
Returns a new BooleanSelector that matches only inputs matched by both this and other.
union(BooleanSelector other) BooleanSelector
Returns a new BooleanSelector that matches all inputs matched by either this or other.
validate(bool isDefined(String variable)) → void
Throws a FormatException if any variables are undefined. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Constants

all → const All
A selector that accepts all inputs.
const All()
none → const None
A selector that accepts no inputs.
const None()