ForeachNode class
A loop created from an @foreach(item in collection) directive.
Constructors
-
ForeachNode(String itemName, Expr collection, List<
Node> body) -
Creates a loop over
collection, binding each value toitemName.
Properties
-
body
→ List<
Node> -
The nodes rendered once for each collection element.
final
- collection → Expr
-
The expression that resolves to the collection being iterated.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemName → String
-
The context variable assigned to each collection element.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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