DataTransferItemList class

A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

DataTransferItemList()
factory

Properties

add → ({DataTransferItem? Function(File data) $1, DataTransferItem? Function(String data, String type) $2})

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension

Overload accessor: $1, $2
no setter
clear ↔ void Function()

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length num

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension

Returns the number of items in the drag data store.
no setter
remove ↔ void Function(num)

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
operator [](num index) DataTransferItem

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension

operator []=(num index, DataTransferItem value) → void

Available on DataTransferItemList, provided by the DataTransferItemList$Typings extension