AnimatedDraggableItem constructor
const
AnimatedDraggableItem({
- required Widget child,
- required MapEntry<
int, GridItemEntity> entry, - required bool enableAnimation,
- required bool enableLongPress,
- bool enabled = true,
- Duration longPressDelay = kLongPressTimeout,
- bool willBeRemoved = false,
- BoxDecoration? dragBoxDecoration,
- OnDragUpdateFunction? onDragUpdate,
- dynamic onRemoveItem()?,
- Key? key,
Implementation
const AnimatedDraggableItem({
required this.child,
required this.entry,
required this.enableAnimation,
required this.enableLongPress,
this.enabled = true,
this.longPressDelay = kLongPressTimeout,
this.willBeRemoved = false,
this.dragBoxDecoration,
this.onDragUpdate,
this.onRemoveItem,
Key? key,
}) : assert(key != null,
'Key of child was null. You need to add a unique key to the child!'),
super(key: key);