DraggableContainer<T extends DraggableItem> constructor
const
DraggableContainer<T extends DraggableItem> ({
- Key? key,
- required List<
T?> items, - required NullableItemBuilder<
T> itemBuilder, - required SliverGridDelegate gridDelegate,
- NullableItemBuilder<
T> ? deleteButtonBuilder, - NullableItemBuilder<
T> ? slotBuilder, - EdgeInsets? padding,
- void onChanged(
- List<
T?> items
- List<
- void onEditModeChanged(
- bool editting
- BeforeRemoveCallBack<
T> ? beforeRemove, - BeforeDropCallBack<
T> ? beforeDrop, - bool? tapOutSideExitEditMode,
- bool? shrinkWrap,
- BoxDecoration? draggingDecoration,
- 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);