SelectionRegistrant mixin

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.
getter/setter pair
size Size
The size of this Selectable.
no setterinherited
boundingBoxes List<Rect>
A list of Rects that represent the bounding box of this Selectable in local coordinates.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value SelectionGeometry
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
no setterinherited

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 nonexistent 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