ReorderableBuilder constructor
const
ReorderableBuilder({
- required List<
Widget> children, - required DraggableBuilder builder,
- ScrollController? scrollController,
- ReorderListCallback? onReorder,
- List<
int> lockedIndices = const [], - bool enableLongPress = true,
- Duration longPressDelay = kLongPressTimeout,
- bool enableDraggable = true,
- double automaticScrollExtent = 80.0,
- bool enableScrollingWhileDragging = true,
- BoxDecoration? dragChildBoxDecoration,
- Duration? initDelay,
- VoidCallback? onDragStarted,
- VoidCallback? onDragEnd,
- Key? key,
Implementation
const ReorderableBuilder({
required this.children,
required this.builder,
this.scrollController,
this.onReorder,
this.lockedIndices = const [],
this.enableLongPress = true,
this.longPressDelay = kLongPressTimeout,
this.enableDraggable = true,
this.automaticScrollExtent = 80.0,
this.enableScrollingWhileDragging = true,
this.dragChildBoxDecoration,
this.initDelay,
this.onDragStarted,
this.onDragEnd,
Key? key,
}) : assert((enableDraggable && onReorder != null) || !enableDraggable),
super(key: key);