UserSelect enum
The user-select CSS property controls whether the user can select text. This doesn't have any effect on content loaded as part of a browser's user interface (its chrome), except in textboxes.
Values
- none → const UserSelect
-
The text of the element and its sub-elements is not selectable. Note that the Selection object can contain these elements.
const UserSelect("none")
- auto → const UserSelect
-
The used value of auto is determined as follows:
On the ::before and ::after pseudo elements, the used value is none If the used value of user-select on the parent of this element is none, the used value is none Otherwise, if the used value of user-select on the parent of this element is all, the used value is all Otherwise, the used value is text
const UserSelect("auto")
- text → const UserSelect
-
The text can be selected by the user.
const UserSelect("text")
- all → const UserSelect
-
The content of the element shall be selected atomically: If a selection would contain part of the element, then the selection must contain the entire element including all its descendants. If a double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.
const UserSelect("all")
- inherit → const UserSelect
-
const UserSelect("inherit")
- initial → const UserSelect
-
const UserSelect("initial")
- revert → const UserSelect
-
const UserSelect("revert")
- revertLayer → const UserSelect
-
const UserSelect("revert-layer")
- unset → const UserSelect
-
const UserSelect("unset")
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The css value
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
UserSelect> - A constant List of the values in this enum, in order of their declaration.