ConstrainedAnimatedReorderableListView<E extends Object> constructor
const
ConstrainedAnimatedReorderableListView<E extends Object> ({
- Key? key,
- required List<
E> items, - required BLVItemBuilder<
Widget, E> itemBuilder, - required ReorderCallback onReorder,
- List<
AnimationEffect> ? enterTransition, - List<
AnimationEffect> ? exitTransition, - Duration? insertDuration,
- Duration? removeDuration,
- void onReorderStart()?,
- void onReorderEnd()?,
- ReorderItemProxyDecorator? proxyDecorator,
- Axis scrollDirection = Axis.vertical,
- EdgeInsetsGeometry? padding,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- ScrollBehavior? scrollBehavior,
- String? restorationId,
- bool buildDefaultDragHandles = true,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Clip clipBehavior = Clip.hardEdge,
- AnimatedWidgetBuilder<
Widget, dynamic> ? insertItemBuilder, - AnimatedWidgetBuilder<
Widget, dynamic> ? removeItemBuilder, - bool longPressDraggable = true,
- bool shrinkWrap = false,
- required bool isSameItem(
- E a,
- E b
- Duration dragStartDelay = const Duration(milliseconds: 500),
- List<
E> nonDraggableItems = const [], - List<
E> lockedItems = const [], - bool enableSwap = true,
Implementation
const ConstrainedAnimatedReorderableListView({
Key? key,
required this.items,
required this.itemBuilder,
required this.onReorder,
this.enterTransition,
this.exitTransition,
this.insertDuration,
this.removeDuration,
this.onReorderStart,
this.onReorderEnd,
this.proxyDecorator,
this.scrollDirection = Axis.vertical,
this.padding,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.scrollBehavior,
this.restorationId,
this.buildDefaultDragHandles = true,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.dragStartBehavior = DragStartBehavior.start,
this.clipBehavior = Clip.hardEdge,
this.insertItemBuilder,
this.removeItemBuilder,
this.longPressDraggable = true,
this.shrinkWrap = false,
required this.isSameItem,
this.dragStartDelay = const Duration(milliseconds: 500),
this.nonDraggableItems = const [],
this.lockedItems = const [],
this.enableSwap = true,
}) : super(key: key);