ReorderableBuilder<T>.builder constructor

const ReorderableBuilder<T>.builder({
  1. required ChildBuilderFunction childBuilder,
  2. required int itemCount,
  3. ScrollController? scrollController,
  4. OnReorderCallback<T>? onReorder,
  5. OnReorderPositions? onReorderPositions,
  6. List<int> lockedIndices = _defaultLockedIndices,
  7. List<int> nonDraggableIndices = _defaultNonDraggableIndices,
  8. bool enableLongPress = _defaultEnableLongPress,
  9. Duration longPressDelay = _defaultLongPressDelay,
  10. bool enableDraggable = _defaultEnableDraggable,
  11. double automaticScrollExtent = _defaultAutomaticScrollExtent,
  12. bool enableScrollingWhileDragging = _defaultEnableScrollingWhileDragging,
  13. Duration fadeInDuration = _defaultFadeInDuration,
  14. Duration releasedChildDuration = _defaultReleasedChildDuration,
  15. Duration positionDuration = _defaultPositionDuration,
  16. double feedbackScaleFactor = _defaultFeedbackScaleFactor,
  17. bool reverse = _defaultReverse,
  18. BoxDecoration? dragChildBoxDecoration,
  19. ItemCallback? onDragStarted,
  20. ItemCallback? onDragEnd,
  21. ItemCallback? onUpdatedDraggedChild,
  22. 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);