text property

String get text

Gets or sets the TextBlock's text string. The default is an empty string. The text of a TextBlock, along with the values of #font, #wrap, #isMultiline and sizing restrictions are what naturally determine the size of the TextBlock.

The text in textblocks can include manual line-breaks by using the character escape, \n.

Leading and trailing whitespace is eliminated in each line of TextBlock text.

If #editable is set to true, users can edit textblocks with the TextEditingTool.

Implementation

_i2.String get text => _i4.getProperty(
      this,
      'text',
    );
set text (String value)

Implementation

set text(_i2.String value) {
  _i4.setProperty(
    this,
    'text',
    value,
  );
}