SceneRepeat class

A frame drawn once per item of a list.

The rule is a CLOSURE, because that is the only shape of it Dart can check: row: (line) => [TextNode(line.item)] types line as the item and line.item as its field, so a cell reading a field the data does not have is a program that does not build.

The frame stays one frame — one field in the file, one row in the tree, one thing to select and style. What multiplies is the picture.

Constructors

SceneRepeat({required List<Object?> items, required List<SceneNode> row(Object? item), String source = ''})

Properties

hashCode → int
The hash code for this object.
no setterinherited
items → List<Object?>
The data. Records in a compiled scene, SceneItem maps in one the editor parsed; only row ever looks inside one.
final
row → List<SceneNode> Function(Object? item)
One item's cells.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
Which parameter the items came from — SOURCE-LEVEL, for the editor and the emitter. Empty in a compiled scene, where the closure is the whole binding and nothing needs to write it back out.
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