DataTransferItem extension type

The DataTransferItem object represents one drag data item. During a drag operation, each DragEvent has a DragEvent.dataTransfer property which contains a DataTransferItemList of drag data items. Each item in the list is a DataTransferItem object.

This interface has no constructor.

on
Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
kind String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setter

Methods

getAsFile() File?
If the item is a file, the DataTransferItem.getAsFile() method returns the drag data item's File object. If the item is not a file, this method returns null.
getAsString(FunctionStringCallback? callback) → void
The DataTransferItem.getAsString() method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a Plain unicode string (i.e. kind is string).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
webkitGetAsEntry() FileSystemEntry?
If the item described by the DataTransferItem is a file, webkitGetAsEntry() returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it. If the item isn't a file, null is returned.

Operators

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