MhItemsViewDragDropSettings<T> constructor
MhItemsViewDragDropSettings<T> ({
- bool allowReorder = false,
- bool showReorderColumn = false,
- bool allowDrag = false,
- bool allowDrop = false,
- MhDropMode defaultDropMode = MhDropMode.move,
- MhItemsViewDragDropModes dragDropMode = MhItemsViewDragDropModes.fullRow,
- void itemsChanged(
- List<
T> items
- List<
- int getSortPos(
- T item
- void setSortPos(
- T item,
- int sortPos
- MhDragMoveResult onDragMove(
- BuildContext context,
- MhDragState dragState,
- T? dropTargetItem
- MhDragStartResult onDragStart(
- MhDragState dragState
- MhAcceptDropResult onAcceptDrop(
- MhDragState dragState,
- List<
T> droppedItems, - T? targetItem
- void onDropAccepted(
- MhDragState dragState,
- List<
T> droppedItems, - T? targetItem
Implementation
MhItemsViewDragDropSettings({
this.allowReorder = false,
this.showReorderColumn = false,
this.allowDrag = false,
this.allowDrop = false,
this.defaultDropMode = MhDropMode.move,
this.dragDropMode = MhItemsViewDragDropModes.fullRow,
this.itemsChanged,
this.getSortPos,
this.setSortPos,
this.onDragMove,
this.onDragStart,
this.onAcceptDrop,
this.onDropAccepted,
});