DVDragDrop class

Constructors

DVDragDrop()
const

Properties

draggingOver → Stream<bool>
True while something is being dragged over the window (so a page can show where to drop), false when it leaves or is dropped. Reported where the platform tells (the web).
no setter
dropped → Stream<DVDropEvent>
Every drop the window took.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept({List<DVDropType> types = const <DVDropType>[DVDropType.files, DVDropType.text], void onDrop(DVDropEvent event)?}) → Future<void>
Takes drops of types onto the window, running onDrop for each.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
Stops taking drops.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

accepting → bool
Whether the window is taking drops.
no setter

Static Methods

dispatch(DVDropEvent event) → void
For platform bindings: the desktop dropped something. A drop after the window stopped accepting reaches nobody -- the desktop can deliver one that was already in flight -- and an empty drop is not a drop.
dispatchDragOver(bool over) → void
For platform bindings: a drag entered (true) or left (false) the window.
reset() → void