DragHandler class

Constructors

DragHandler([dynamic target])
Construct a handler with an Element or List

Properties

autoStop bool
True if we should automatically stop drags on mouse up
read / write
currentTarget Element
The element that the current drag started on
read / write
dragConditions AllowDragStart
The function to call to determine if the drag should be allowed to start on mouse down
read / write
dragging bool
read-only
enabled bool
True iff the handler is active
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
onDrag Stream<DragEvent>
Exposed drag handler event streams
read-only
onDragEnd Stream<DragEvent>
read-only
onDragOut Stream<DragEvent>
read-only
onDragOver Stream<DragEvent>
read-only
onDragStart Stream<DragEvent>
read-only
preventDefault bool
Prevent default action on mouse down. To prevent draggable parents from begin dragged and text from being selected
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addTarget(Element element, {bool drag = true, bool over = true, bool out = true}) → void
Add a target to the set
addTargets(Iterable<Element> elements, {bool drag = true, bool over = true, bool out = true}) → void
Add targets to the set
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeAllTargets({bool drag = true, bool over = true, bool out = true}) → void
Remove all targets
removeTarget(Element element, {bool drag = true, bool over = true, bool out = true}) → void
Remove a target from the set
removeTargets(List<Element> elements, {bool drag = true, bool over = true, bool out = true}) → void
Remove targets from the set
stopDrag([MouseEvent event]) → void
Manually end the drag
toString() String
A string representation of this object. [...]
inherited

Operators

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