DataTransfer class
A map containing a mapping of the mime type of the corresponding transferred data.
Drag and drop controllers that implement {@link TreeDragAndDropController.handleDraghandleDrag
} can add additional mime types to the
data transfer. These additional mime types will only be included in the handleDrop
when the the drag was initiated from
an element in the same drag and drop controller.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
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
-
forEach(
void callbackfn(DataTransferItem, String, DataTransfer), [dynamic thisArg]) → void -
Available on DataTransfer, provided by the DataTransfer$Typings extension
Allows iteration through the data transfer items. -
get(
String mimeType) → DataTransferItem? -
Available on DataTransfer, provided by the DataTransfer$Typings extension
Retrieves the data transfer item for a given mime type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String mimeType, DataTransferItem value) → void -
Available on DataTransfer, provided by the DataTransfer$Typings extension
Sets a mime type to data transfer item mapping. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited