AnimatedDraggableItem constructor

const AnimatedDraggableItem({
  1. required Widget child,
  2. required MapEntry<int, GridItemEntity> entry,
  3. required bool enableAnimation,
  4. required bool enableLongPress,
  5. bool enabled = true,
  6. Duration longPressDelay = kLongPressTimeout,
  7. bool willBeRemoved = false,
  8. BoxDecoration? dragBoxDecoration,
  9. OnDragUpdateFunction? onDragUpdate,
  10. dynamic onRemoveItem(
    1. int id,
    2. Key key
    )?,
  11. 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);