DataTransferItem class

One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

DataTransferItem()
factory

Properties

getAsFile File? Function()

Available on DataTransferItem, provided by the DataTransferItem$Typings extension

getter/setter pair
getAsString ↔ void Function([FunctionStringCallback?])

Available on DataTransferItem, provided by the DataTransferItem$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind String

Available on DataTransferItem, provided by the DataTransferItem$Typings extension

Returns the drag data item kind, one of: "string", "file".
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String

Available on DataTransferItem, provided by the DataTransferItem$Typings extension

Returns the drag data item type string.
no setter
webkitGetAsEntry FileSystemEntry? Function()

Available on DataTransferItem, provided by the DataTransferItem$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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