state property

EnumValue get state

Gets or sets the state of the TextEditingTool. The only accepted values are listed as constant properties of TextEditingTool, including:

  • TextEditingTool.StateNone
  • TextEditingTool.StateActive
  • TextEditingTool.StateEditing
  • TextEditingTool.StateValidating
  • TextEditingTool.StateValidated

The starting value value is TextEditingTool.StateNone, TextEditingTool#doActivate sets the value to TextEditingTool.StateActive. The default text editor receiving focus sets the value to TextEditingTool.StateEditing. TextEditingTool#acceptText sets the value to TextEditingTool.StateValidating. Once accepted and the tool begins the "TextEditing" transaction, the value is set to TextEditingTool.StateValidated.

Implementation

_i3.EnumValue get state => _i4.getProperty(
      this,
      'state',
    );
set state (EnumValue value)

Implementation

set state(_i3.EnumValue value) {
  _i4.setProperty(
    this,
    'state',
    value,
  );
}