text function
Declares a Text node, with the specified text, should appear at the current location in the document tree.
The formatters
are optional functions that format the
value when it changes. The formatters are applied in the
order they appear in the lost of formatters. The second
formatter will receive the result of the first formatter
and so on.
Returns the corresponding DOM Text Node.
Implementation
Text text(Object value, {List<String Function(Object)>? formatters}) {
return _incDom.callMethod('text', <Object>[
value,
...?formatters,
]) as Text;
}