MhItemsViewDragDropSettings<T> constructor

MhItemsViewDragDropSettings<T>({
  1. bool allowReorder = false,
  2. bool showReorderColumn = false,
  3. bool allowDrag = false,
  4. bool allowDrop = false,
  5. MhDropMode defaultDropMode = MhDropMode.move,
  6. MhItemsViewDragDropModes dragDropMode = MhItemsViewDragDropModes.fullRow,
  7. void itemsChanged(
    1. List<T> items
    )?,
  8. int getSortPos(
    1. T item
    )?,
  9. void setSortPos(
    1. T item,
    2. int sortPos
    )?,
  10. MhDragMoveResult onDragMove(
    1. BuildContext context,
    2. MhDragState dragState,
    3. T? dropTargetItem
    )?,
  11. MhDragStartResult onDragStart(
    1. MhDragState dragState
    )?,
  12. MhAcceptDropResult onAcceptDrop(
    1. MhDragState dragState,
    2. List<T> droppedItems,
    3. T? targetItem
    )?,
  13. void onDropAccepted(
    1. MhDragState dragState,
    2. List<T> droppedItems,
    3. 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,
});