text property

String get text

The text a node draws, as one string.

Reading joins the runs. WRITING collapses them: a node whose words are typed into one field is a node with one run, which is what typing into one field means. The TYPE it is drawn in is the style — there is no per-property parameter beside it, because an override is a delta on the style (tokens.title.copyWith(fontSize: 60)), which is what keeps this constructor the same size whether the table carries six style properties or thirty. What a text does spell for itself is its PARAGRAPH — align and maxLines.

Implementation

String get text => runs.map((r) => r.text).join();
set text (String value)

Implementation

set text(String value) => runs = [TextRun(value)];