CaseExpr class

CASE WHEN ... THEN ... ELSE ... END. Both forms are supported: CASE WHEN <cond> THEN <v> ... [ELSE <v>] END (searched) CASE <subject> WHEN <v1> THEN <r1> ... [ELSE <v>] END (simple) The simple form is desugared by the parser into the searched form.

Inheritance

Constructors

CaseExpr(List<Expr> whens, List<Expr> thens, Expr? elseExpr)

Properties

elseExpr → Expr?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thens → List<Expr>
final
whens → List<Expr>
final

Methods

eval(Map<String, Object?> row) → Object?
Evaluate this expression in the context of row (column name -> value).
override
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