DragAndDropList class

Implemented types

Constructors

DragAndDropList({required List<DragAndDropItem> children, Widget? header, Widget? footer, Widget? leftSide, Widget? rightSide, Widget? contentsWhenEmpty, Widget? lastTarget, Decoration? decoration, MainAxisAlignment horizontalAlignment = MainAxisAlignment.start, CrossAxisAlignment verticalAlignment = CrossAxisAlignment.start, bool canDrag = true})

Properties

canDrag bool
Whether or not this item can be dragged. Set to true if it can be reordered. Set to false if it must remain fixed.
final
children List<DragAndDropItem>
The child elements that will be contained in this list. It is possible to not provide any children when an empty list is desired.
final
contentsWhenEmpty Widget?
The widget to be displayed when a list is empty. If this is not null, it will override that set in DragAndDropLists.contentsWhenEmpty.
final
decoration Decoration?
The decoration displayed around a list. If this is not null, it will override that set in DragAndDropLists.listDecoration.
final
The widget that is displayed at the bottom of the list.
final
hashCode int
The hash code for this object.
no setterinherited
The widget that is displayed at the top of the list.
final
horizontalAlignment MainAxisAlignment
The horizontal alignment of the contents in this list. If this is not null, it will override that set in DragAndDropLists.horizontalAlignment.
final
lastTarget Widget?
The widget to be displayed as the last element in the list that will accept a dragged item.
final
leftSide Widget?
The widget that is displayed to the left of the list.
final
rightSide Widget?
The widget that is displayed to the right of the list.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verticalAlignment CrossAxisAlignment
The vertical alignment of the contents in this list. If this is not null, it will override that set in DragAndDropLists.verticalAlignment.
final

Methods

generateWidget(DragAndDropBuilderParameters params) Widget
override
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