IfElementNode class

An if-element in a collection (if (c) a else b or if (x case p) a).

Inheritance

Constructors

IfElementNode({required ExpressionNode condition, PatternNode? casePattern, ExpressionNode? whenGuard, required CollectionElementNode thenElement, CollectionElementNode? elseElement})
const

Properties

casePattern → PatternNode?
final
condition → ExpressionNode
final
elseElement → CollectionElementNode?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thenElement → CollectionElementNode
final
whenGuard → ExpressionNode?
final

Methods

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

Operators

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