SelectionResult enum Null safety

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.

Inheritance

Constructors

SelectionResult()
const

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.

SelectionResult()
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.

SelectionResult()
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.

SelectionResult()
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.

SelectionResult()
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.

SelectionResult()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[next, previous, end, pending, none]