LineIfThen class

Line of query text with condition. If bool cond is true, then String when_true will pasted into query. Sample:

Query([
  Line('FOR doc in documents'),
  LineIfThen(tag != null, 'FILTER doc.tags && POSITION( doc.tags, tag )'),
  ...
])
Inheritance

Constructors

LineIfThen(bool cond, String whenTrue)

Properties

hashCode int
The hash code for this object.
no setterinherited
line String?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited