ReorderableBuilder<T>.builder constructor
const
ReorderableBuilder<T>.builder ({
- required ChildBuilderFunction childBuilder,
- required int itemCount,
- 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.builder({
required ChildBuilderFunction this.childBuilder,
required int this.itemCount,
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),
children = null,
builder = null,
super(key: key);