SelectionRegistrar class Null safety

A registrar that keeps track of Selectables in the subtree.

A Selectable is only included in the SelectableRegion if they are registered with a SelectionRegistrar. Once a Selectable is registered, it will receive SelectionEvents in SelectionHandler.dispatchSelectionEvent.

Use SelectionContainer.maybeOf to get the immediate SelectionRegistrar in the ancestor chain above the build context.

See also:

Implementers

Constructors

SelectionRegistrar()

Properties

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

Methods

add(Selectable selectable) → void
Adds the selectable into the registrar.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remove(Selectable selectable) → void
Removes the selectable from the registrar.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited