ReorderableWrap constructor

ReorderableWrap({
  1. required List<Widget> children,
  2. required ReorderCallback onReorder,
  3. List<Widget>? header,
  4. Widget? footer,
  5. ScrollController? controller,
  6. Axis direction = Axis.horizontal,
  7. Axis scrollDirection = Axis.vertical,
  8. EdgeInsets? padding,
  9. BuildItemsContainer? buildItemsContainer,
  10. BuildDraggableFeedback? buildDraggableFeedback,
  11. bool needsLongPressDraggable = true,
  12. WrapAlignment alignment = WrapAlignment.start,
  13. double spacing = 0.0,
  14. WrapAlignment runAlignment = WrapAlignment.start,
  15. double runSpacing = 0.0,
  16. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  17. TextDirection? textDirection,
  18. VerticalDirection verticalDirection = VerticalDirection.down,
  19. int? minMainAxisCount,
  20. int? maxMainAxisCount,
  21. NoReorderCallback? onNoReorder,
  22. ReorderStartedCallback? onReorderStarted,
  23. Duration reorderAnimationDuration = const Duration(milliseconds: 200),
  24. Duration scrollAnimationDuration = const Duration(milliseconds: 200),
  25. bool ignorePrimaryScrollController = false,
  26. 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.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,
  Key? key,
}) :
//        assert(
//          children.every((Widget w) => w.key != null),
//          'All children of this widget must have a key.',
//        ),
      super(key: key);