IfNode class

A conditional block created from an @if directive.

Inheritance

Constructors

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

Properties

condition → Expression
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