selectionEnabled property

bool selectionEnabled

True if interactive selection is enabled based on the values of enableInteractiveSelection and obscureText.

By default enableInteractiveSelection is null, obscureText is false, and this method returns true. If enableInteractiveSelection is null and obscureText is true, then this method returns false. This is the common case for password fields. If enableInteractiveSelection is non-null then its value is returned. An app might set it to true to enable interactive selection for a password field, or to false to unconditionally disable interactive selection.


bool get selectionEnabled {
  return enableInteractiveSelection;