ConditionOperand class final

One side of a Comparison: an expression text whose ${...} are read (${count}, ${= a + b}, 3, done), or, when raw, a literal taken as written. Both are then parsed loosely (3 is a number, true a bool, [1, 2] a list). JSON: the text, or {"raw": text}.

Annotations
  • @immutable

Constructors

ConditionOperand(String text, {bool raw = false})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
raw → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
final

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → ConditionOperand

Constants

empty → const ConditionOperand