SelectionRegistrant mixin Null safety

A mixin to auto-register the mixer to the registrar.

To use this mixin, the mixer needs to set the registrar to the SelectionRegistrar it wants to register to.

This mixin only registers the mixer with the registrar if the SelectionGeometry.hasContent returned by the mixer is true.

Superclass Constraints

Properties

registrar SelectionRegistrar?
The SelectionRegistrar the mixer will be or is registered to.
read / write
size Size
The size of this Selectable.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value SelectionGeometry
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
read-onlyinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object notifies its listeners.
inherited
dispatchSelectionEvent(SelectionEvent event) SelectionResult
Handles the SelectionEvent sent to this object.
inherited
dispose() → void
Disposes resources held by the mixer.
override
getSelectedContent() SelectedContent?
Gets the selected content in this object.
inherited
getTransformTo(RenderObject? ancestor) Matrix4
Applies the paint transform up the tree to ancestor.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pushHandleLayers(LayerLink? startHandle, LayerLink? endHandle) → void
Marks this handler to be responsible for pushing LeaderLayers for the selection handles.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
toString() String
A string representation of this object.
inherited

Operators

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