Reorderable constructor
const
Reorderable({
- required List<
Widget> children, - required ReorderableType reorderableType,
- required ReorderCallback onReorder,
- List<
int> lockedChildren = const [], - double spacing = 8.0,
- double runSpacing = 8.0,
- bool enableAnimation = true,
- bool enableLongPress = true,
- bool enableReorder = true,
- Duration longPressDelay = kLongPressTimeout,
- double mainAxisSpacing = 0.0,
- Clip clipBehavior = Clip.hardEdge,
- double maxCrossAxisExtent = 0.0,
- double crossAxisSpacing = 0.0,
- SliverGridDelegate gridDelegate = const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
- double childAspectRatio = 1.0,
- int? crossAxisCount,
- ScrollPhysics? physics,
- EdgeInsetsGeometry? padding,
- BoxDecoration? dragChildBoxDecoration,
- 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);