DropTarget class

Implemented types

Constructors

DropTarget.borrowed(int nativeHandle)
Wraps a handle owned elsewhere; releasing it stays the owner's job.
DropTarget.fromHandle(int nativeHandle)
Adopts a handle returned by the C API and releases it when this object becomes unreachable.

Properties

dropOperation ↔ DragOperation
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
no setter
nativeHandle → int
The underlying handle-table entry.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
windowId → int
no setter

Methods

addListener(FutureOr<void> callback(DropTargetEvent)) → ListenerId
Registers callback for every DropTargetEvent this DropTarget emits.
dispose() → void
Releases the handle now instead of at collection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(ListenerId listenerId) → bool
Unregisters a listener. Returns false if unknown.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

create(Window? window) → DropTarget?
Creates a new DropTarget; returns null if the native side failed.
isSupported() → bool