Reorderable constructor

const Reorderable({
  1. required List<Widget> children,
  2. required ReorderableType reorderableType,
  3. required ReorderCallback onReorder,
  4. List<int> lockedChildren = const [],
  5. double spacing = 8.0,
  6. double runSpacing = 8.0,
  7. bool enableAnimation = true,
  8. bool enableLongPress = true,
  9. bool enableReorder = true,
  10. Duration longPressDelay = kLongPressTimeout,
  11. double mainAxisSpacing = 0.0,
  12. Clip clipBehavior = Clip.hardEdge,
  13. double maxCrossAxisExtent = 0.0,
  14. double crossAxisSpacing = 0.0,
  15. SliverGridDelegate gridDelegate = const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
  16. double childAspectRatio = 1.0,
  17. int? crossAxisCount,
  18. ScrollPhysics? physics,
  19. EdgeInsetsGeometry? padding,
  20. BoxDecoration? dragChildBoxDecoration,
  21. Key? key,
})

Implementation

const Reorderable({
  required this.children,
  required this.reorderableType,
  required this.onReorder,
  this.lockedChildren = const [],
  this.spacing = 8.0,
  this.runSpacing = 8.0,
  this.enableAnimation = true,
  this.enableLongPress = true,
  this.enableReorder = true,
  this.longPressDelay = kLongPressTimeout,
  this.mainAxisSpacing = 0.0,
  this.clipBehavior = Clip.hardEdge,
  this.maxCrossAxisExtent = 0.0,
  this.crossAxisSpacing = 0.0,
  this.gridDelegate = const SliverGridDelegateWithFixedCrossAxisCount(
    crossAxisCount: 3,
  ),
  this.childAspectRatio = 1.0,
  this.crossAxisCount,
  this.physics,
  this.padding,
  this.dragChildBoxDecoration,
  Key? key,
}) : super(key: key);