ReorderableBuilder<T> constructor
const
ReorderableBuilder<T> ({
- required List<
Widget> ? children, - required DraggableBuilder? builder,
- ScrollController? scrollController,
- OnReorderCallback<
T> ? onReorder, - OnReorderPositions? onReorderPositions,
- List<
int> lockedIndices = _defaultLockedIndices, - List<
int> nonDraggableIndices = _defaultNonDraggableIndices, - bool enableLongPress = _defaultEnableLongPress,
- Duration longPressDelay = _defaultLongPressDelay,
- bool enableDraggable = _defaultEnableDraggable,
- double automaticScrollExtent = _defaultAutomaticScrollExtent,
- bool enableScrollingWhileDragging = _defaultEnableScrollingWhileDragging,
- Duration fadeInDuration = _defaultFadeInDuration,
- Duration releasedChildDuration = _defaultReleasedChildDuration,
- Duration positionDuration = _defaultPositionDuration,
- double feedbackScaleFactor = _defaultFeedbackScaleFactor,
- bool reverse = _defaultReverse,
- BoxDecoration? dragChildBoxDecoration,
- ItemCallback? onDragStarted,
- ItemCallback? onDragEnd,
- ItemCallback? onUpdatedDraggedChild,
- Key? key,
Implementation
const ReorderableBuilder({
required this.children,
required this.builder,
this.scrollController,
this.onReorder,
this.onReorderPositions,
this.lockedIndices = _defaultLockedIndices,
this.nonDraggableIndices = _defaultNonDraggableIndices,
this.enableLongPress = _defaultEnableLongPress,
this.longPressDelay = _defaultLongPressDelay,
this.enableDraggable = _defaultEnableDraggable,
this.automaticScrollExtent = _defaultAutomaticScrollExtent,
this.enableScrollingWhileDragging = _defaultEnableScrollingWhileDragging,
this.fadeInDuration = _defaultFadeInDuration,
this.releasedChildDuration = _defaultReleasedChildDuration,
this.positionDuration = _defaultPositionDuration,
this.feedbackScaleFactor = _defaultFeedbackScaleFactor,
this.reverse = _defaultReverse,
this.dragChildBoxDecoration,
this.onDragStarted,
this.onDragEnd,
this.onUpdatedDraggedChild,
Key? key,
}) : assert((enableDraggable &&
(onReorder != null || onReorderPositions != null)) ||
!enableDraggable),
childBuilder = null,
itemCount = null,
super(key: key);