ReorderableWrap constructor
ReorderableWrap({
- required List<
Widget> children, - required ReorderCallback onReorder,
- List<
Widget> ? header, - ScrollController? controller,
- Axis direction = Axis.horizontal,
- Axis scrollDirection = Axis.vertical,
- ScrollPhysics? scrollPhysics,
- EdgeInsets? padding,
- BuildItemsContainer? buildItemsContainer,
- BuildDraggableFeedback? buildDraggableFeedback,
- bool needsLongPressDraggable = true,
- WrapAlignment alignment = WrapAlignment.start,
- double spacing = 0.0,
- WrapAlignment runAlignment = WrapAlignment.start,
- double runSpacing = 0.0,
- WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- int? minMainAxisCount,
- int? maxMainAxisCount,
- NoReorderCallback? onNoReorder,
- ReorderStartedCallback? onReorderStarted,
- Duration reorderAnimationDuration = const Duration(milliseconds: 200),
- Duration scrollAnimationDuration = const Duration(milliseconds: 200),
- bool ignorePrimaryScrollController = false,
- bool enableReorder = true,
- Key? key,
Creates a reorderable wrap.
Implementation
ReorderableWrap({
required this.children,
required this.onReorder,
this.header,
this.footer,
this.controller,
this.direction = Axis.horizontal,
this.scrollDirection = Axis.vertical,
this.scrollPhysics,
this.padding,
this.buildItemsContainer,
this.buildDraggableFeedback,
this.needsLongPressDraggable = true,
this.alignment = WrapAlignment.start,
this.spacing = 0.0,
this.runAlignment = WrapAlignment.start,
this.runSpacing = 0.0,
this.crossAxisAlignment = WrapCrossAlignment.start,
this.textDirection,
this.verticalDirection = VerticalDirection.down,
this.minMainAxisCount,
this.maxMainAxisCount,
this.onNoReorder,
this.onReorderStarted,
this.reorderAnimationDuration = const Duration(milliseconds: 200),
this.scrollAnimationDuration = const Duration(milliseconds: 200),
this.ignorePrimaryScrollController = false,
this.enableReorder = true,
Key? key,
}) :
// assert(
// children.every((Widget w) => w.key != null),
// 'All children of this widget must have a key.',
// ),
super(key: key);