DraggableContainer<T extends DraggableItem> constructor

const DraggableContainer<T extends DraggableItem>({
  1. Key? key,
  2. required List<T?> items,
  3. required NullableItemBuilder<T> itemBuilder,
  4. required SliverGridDelegate gridDelegate,
  5. NullableItemBuilder<T>? deleteButtonBuilder,
  6. NullableItemBuilder<T>? slotBuilder,
  7. EdgeInsets? padding,
  8. void onChanged(
    1. List<T?> items
    )?,
  9. void onEditModeChanged(
    1. bool editting
    )?,
  10. BeforeRemoveCallBack<T>? beforeRemove,
  11. BeforeDropCallBack<T>? beforeDrop,
  12. bool? tapOutSideExitEditMode,
  13. bool? shrinkWrap,
  14. BoxDecoration? draggingDecoration,
  15. Duration? animationDuration,
})

Implementation

const DraggableContainer({
  Key? key,
  required this.items,
  required this.itemBuilder,
  required this.gridDelegate,
  this.deleteButtonBuilder,
  this.slotBuilder,
  this.padding,
  this.onChanged,
  this.onEditModeChanged,
  this.beforeRemove,
  this.beforeDrop,
  this.tapOutSideExitEditMode,
  this.shrinkWrap,
  this.draggingDecoration,
  Duration? animationDuration,
})  : animationDuration =
          animationDuration ?? const Duration(milliseconds: 200),
      super(key: key);