IfNode class

A conditional block created from an @if directive.

Inheritance

Constructors

IfNode(Expr condition, List<Node> thenBranch, List<Node> elseBranch)
Creates a conditional node with its two possible branches.

Properties

condition Expr
The expression used to select a branch.
final
elseBranch List<Node>
Nodes rendered when condition is falsey.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thenBranch List<Node>
Nodes rendered when condition is truthy.
final

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