Skip to main content
.textSelection(mode: 'enabled' | 'disabled'): Component;

Parameters

mode
'enabled' | 'disabled'
Whether text selection is enabled or disabled.

Support

Usage

Selectable text

Text("This text can be selected")
    .textSelection('enabled')

Non-selectable text

Text("This text cannot be selected")
    .textSelection('disabled')