DataTransferItem class
Encapsulates data transferred during drag and drop operations.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- DataTransferItem.new([dynamic value])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
Available on DataTransferItem, provided by the DataTransferItem$Typings extension
Custom data stored on this item.no setter
Methods
-
asFile(
) → DataTransferFile? -
Available on DataTransferItem, provided by the DataTransferItem$Typings extension
Try getting the {@link DataTransferFile file} associated with this data transfer item. -
asString(
) → Future -
Available on DataTransferItem, provided by the DataTransferItem$Typings extension
Get a string representation of this item. -
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