DropItem class abstract

Single item being dropped in a DropSession.

Mixed-in types

Constructors

DropItem()

Properties

dataReader → DataReader?
DataReader that can be used to access drag data for this item. dataReader is always available in onPerformDrop event, but may be null during the onDropOver event in following cases:
no setter
hashCode int
The hash code for this object.
no setterinherited
localData Object?
Local data associated with this drop item that can be only read when dropping within the same application.
no setter
platformFormats List<PlatformFormat>
Returns list of platform specific format identifier for this item.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canProvide(DataFormat<Object> f) bool
Returns whether the item contains data for given DataFormat. This is a best guess based on format identifier. It is still possible that dataReader will fail to provide the data during drop.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
hasValue(DataFormat<Object> f) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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