DragDropManager class

Global coordinator for handling in-terminal drag and drop sessions.

Constructors

DragDropManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

activeSession DragSession?
Exposes the currently active drag session, if any.
no setter
onDragSessionChanged ↔ void Function(DragSession? session)?
Hook triggered whenever the active drag session changes.
getter/setter pair

Static Methods

cancelDrag() → void
Cancels the current drag session.
drop() → void
Drops the active session payload onto the hovered target and resets session state.
startDrag(DragSession session) → void
Starts a new drag session.
unregisterSource(Element source) → void
Clears references to the given source element if it is currently tracked.
unregisterTarget(DragTargetElement target) → void
Clears references to the given target element if it is currently tracked.
updateDrag(Point<int> mousePosition) → void
Updates the mouse coordinate of the active drag session and triggers dropzone hit testing.