DragAndDropListExpansion class
This class mirrors flutter's ExpansionTile, with similar options.
- Implemented types
Constructors
-
DragAndDropListExpansion({List<
DragAndDropItem> ? children, Widget? title, Widget? subtitle, Widget? trailing, Widget? leading, bool initiallyExpanded = false, Color? backgroundColor, OnExpansionChanged? onExpansionChanged, Widget? contentsWhenEmpty, Widget? lastTarget, required Key listKey, bool canDrag = true, bool disableTopAndBottomBorders = false})
Properties
- backgroundColor → Color?
-
final
- 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> ? -
final
- contentsWhenEmpty → Widget?
-
final
- disableTopAndBottomBorders → bool
-
Disable to borders displayed at the top and bottom when expanded
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initiallyExpanded → bool
-
final
- isExpanded → dynamic
-
no setteroverride
- lastTarget → Widget?
-
final
- leading → Widget?
-
final
- listKey → Key
-
Set this to a unique key that will remain unchanged over the lifetime of the list.
Used to maintain the expanded/collapsed states
final
- onExpansionChanged → OnExpansionChanged?
-
This function will be called when the expansion of a tile is changed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → Widget?
-
final
- title → Widget?
-
final
- trailing → Widget?
-
final
Methods
-
collapse(
) → dynamic -
override
-
expand(
) → dynamic -
override
-
generateWidget(
DragAndDropBuilderParameters params) → Widget -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggleExpanded(
) → dynamic -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited