enableInteractiveSelection property

bool enableInteractiveSelection
final

Whether to enable user interface affordances for changing the text selection.

For example, setting this to true will enable features such as long-pressing the TextField to select text and show the cut/copy/paste menu, and tapping to move the text caret.

When this is false, the text selection cannot be adjusted by the user, the cut/copy/paste menu is hidden, and the shortcuts to cut/copy/paste text do nothing but stop propagation of the key event to other key event handlers in the focus chain.

Defaults to true.

Implementation

final bool enableInteractiveSelection;