SortableList<T > class
Constructors
SortableList ({required List <T > items , required double itemExtent , required SortableItemBuilder <T > itemBuilder , Key ? key , Duration ? animDuration = const Duration(milliseconds: 300) , Duration dragDelay = Duration.zero , double handleAlignment = 0.0 , Axis ? scrollDirection = Axis.vertical , bool ? shrinkWrap = false , dynamic feedbackItemBuilder , dynamic feedbackHandleBuilder , dynamic handleBuilder , ItemReorderCallback ? onItemReorder , ScrollController ? controller , EdgeInsetsGeometry ? padding , ScrollPhysics ? physics })
SortableList.handleLess ({required List <T > items , required double itemExtent , required BareSortableItemBuilder <T > itemBuilder , Key ? key , BareFeedbackSortableItemBuilder <T > ? feedbackItemBuilder , Duration ? animDuration , Duration ? dragDelay , double ? handleAlignment , Axis ? scrollDirection , ScrollPhysics ? physics , bool ? shrinkWrap , ItemReorderCallback ? onItemReorder })
Properties
animDuration
↔ Duration ?
Duration of raise and drop animation of dragged item.
getter/setter pair
axis
→ Axis
no setter
controller
↔ ScrollController ?
An object that can be used to control the position to which this scroll
view is scrolled.
getter/setter pair
dragDelay
↔ Duration
Duration between list item touch and drag start.
getter/setter pair
feedbackHandleBuilder
↔ FeedbackDragHandleBuilder
Builder function that creates handle widget of currently dragged item.
If null, handleBuilder function will be used instead.
getter/setter pair
feedbackItemBuilder
↔ FeedbackSortableItemBuilder <T >
Builder function that creates widget of currently dragged item.
If null, builder
function will be used instead.
getter/setter pair
handleAlignment
↔ double
Relative position within item widget that corresponds to the center of
handle, where -1.0 stands for beginning and 1.0 for end of the item.
getter/setter pair
handleBuilder
↔ DragHandleBuilder
Builder function that creates handle widget for each element of the list.
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter inherited
itemBuilder
→ SortableItemBuilder <T >
Builder function that creates widget for each element of the list.
final
itemExtent
→ double
Extent of each item widget in the list. Corresponds to
width/height in case of horizontal/vertical axis orientation.
final
items
→ List <T >
List of items displayed in the list.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
onItemReorder
↔ ItemReorderCallback ?
Callback function that invokes if dragged item changed
its index and drag action is ended. By default this
will swap start and end position in items list.
getter/setter pair
padding
↔ EdgeInsetsGeometry ?
The amount of space by which to inset the children.
getter/setter pair
physics
↔ ScrollPhysics ?
How the scroll view should respond to user input.
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scrollDirection
↔ Axis ?
Axis orientation of the list widget.
getter/setter pair
shrinkWrap
↔ bool ?
Whether the extent of the scroll view in the scrollDirection
should be determined by the contents being viewed.
getter/setter pair