SelectionResult enum
The result after handling a SelectionEvent.
SelectionEvents are sent from SelectionRegistrar to be handled by SelectionHandler.dispatchSelectionEvent. The subclasses of SelectionHandler or Selectable must return appropriate SelectionResults after handling the events.
This is used by the SelectionContainer to determine how a selection expands across its Selectable children.
Values
- next → const SelectionResult
-
There is nothing left to select forward in this Selectable, and further selection should extend to the next Selectable in screen order.
This is used after subclasses SelectionHandler or Selectable handled SelectionEdgeUpdateEvent.
- previous → const SelectionResult
-
Selection does not reach this Selectable and is located before it in screen order.
This is used after subclasses SelectionHandler or Selectable handled SelectionEdgeUpdateEvent.
- end → const SelectionResult
-
Selection ends in this Selectable.
Part of the Selectable may or may not be selected, but there is still content to select forward or backward.
This is used after subclasses SelectionHandler or Selectable handled SelectionEdgeUpdateEvent.
- pending → const SelectionResult
-
The result can't be determined in this frame.
This is typically used when the subtree is scrolling to reveal more content.
This is used after subclasses SelectionHandler or Selectable handled SelectionEdgeUpdateEvent.
- none → const SelectionResult
-
There is no result for the selection event.
This is used when a selection result is not applicable, e.g. SelectAllSelectionEvent, ClearSelectionEvent, and SelectWordSelectionEvent.
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
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<
SelectionResult> - A constant List of the values in this enum, in order of their declaration.