DataTransferItemList class

The object is a list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a . The individual items can be accessed using the array operator []. This interface has no constructor.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

DataTransferItemList()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int

Available on DataTransferItemList, provided by the PropsDataTransferItemList extension

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

Methods

add([String? data, String? type]) DataTransferItem?

Available on DataTransferItemList, provided by the PropsDataTransferItemList extension

clear() → void

Available on DataTransferItemList, provided by the PropsDataTransferItemList extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(int index) → void

Available on DataTransferItemList, provided by the PropsDataTransferItemList extension

toString() String
A string representation of this object.
inherited

Operators

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