DataTransfer class
The object is used to hold the data that is being dragged during
a drag and drop operation. It may hold one or more data items,
each of one or more data types. For more information about drag
and drop, see HTML Drag and Drop API.
This object is available from the dataTransfer
property of all
drag events
.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- DataTransfer()
-
factory
Properties
- dropEffect ↔ String
-
Available on DataTransfer, provided by the PropsDataTransfer extension
getter/setter pair - effectAllowed ↔ String
-
Available on DataTransfer, provided by the PropsDataTransfer extension
getter/setter pair - files → FileList
-
Available on DataTransfer, provided by the PropsDataTransfer extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- items → DataTransferItemList
-
Available on DataTransfer, provided by the PropsDataTransfer extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Iterable<
String> -
Available on DataTransfer, provided by the PropsDataTransfer extension
no setter
Methods
-
clearData(
[String? format]) → void -
Available on DataTransfer, provided by the PropsDataTransfer extension
-
getData(
String format) → String -
Available on DataTransfer, provided by the PropsDataTransfer extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setData(
String format, String data) → void -
Available on DataTransfer, provided by the PropsDataTransfer extension
-
setDragImage(
Element image, int x, int y) → void -
Available on DataTransfer, provided by the PropsDataTransfer extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited