SortableList<T> class

Inheritance

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 setterinherited
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.
finalinherited
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 setterinherited
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

Methods

axisOffset(Offset offset) double
inherited
axisSize(Size size) double
inherited
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → SortableListState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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