DragAndDropItem<T> class

Class representing an item in the drag and drop operation.

It contains a key for identifying the item and the content of the item. It can also have a list of children DragAndDropItems.

Constructors

DragAndDropItem({required String key, required T content, List<DragAndDropItem<T>>? children})

Properties

children List<DragAndDropItem<T>>
The children of this item.
getter/setter pair
content → T
The content of the item.
final
hashCode int
The hash code for this object.
no setterinherited
key String
The key that identifies the item.
final
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