ClearText constructor

ClearText({
  1. int characters = 1 << 31,
})

Clear text automatically.

It will clear any text until the text input no longer contains any text, if you want to only clear a certain amount of characters you can set the characters variable.

This action can be invoked either using the short-hand version:

- clearText:

Or using the verbose version:

- clearText:
    characters: 10

Implementation

ClearText({
  this.characters = 1 << 31,
});