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. ScrollPhysics? scrollPhysics,
  9. EdgeInsets? padding,
  10. BuildItemsContainer? buildItemsContainer,
  11. BuildDraggableFeedback? buildDraggableFeedback,
  12. bool needsLongPressDraggable = true,
  13. WrapAlignment alignment = WrapAlignment.start,
  14. double spacing = 0.0,
  15. WrapAlignment runAlignment = WrapAlignment.start,
  16. double runSpacing = 0.0,
  17. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  18. TextDirection? textDirection,
  19. VerticalDirection verticalDirection = VerticalDirection.down,
  20. int? minMainAxisCount,
  21. int? maxMainAxisCount,
  22. NoReorderCallback? onNoReorder,
  23. ReorderStartedCallback? onReorderStarted,
  24. Duration reorderAnimationDuration = const Duration(milliseconds: 200),
  25. Duration scrollAnimationDuration = const Duration(milliseconds: 200),
  26. bool ignorePrimaryScrollController = false,
  27. bool enableReorder = true,
  28. 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);