Dock<T extends Object> constructor

const Dock<T extends Object>({
  1. Key? key,
  2. required List<T> items,
  3. required Widget itemBuilder(
    1. T item
    ),
  4. dynamic onReorder(
    1. List<T>
    )?,
  5. double itemWidth = 48,
  6. bool delayed = true,
  7. dynamic onDragStarted(
    1. T
    )?,
  8. dynamic onDragEnded(
    1. T
    )?,
  9. dynamic onLeave(
    1. T?
    )?,
  10. bool onWillAccept(
    1. T?
    )?,
})

Implementation

const Dock({
  super.key,
  required this.items,
  required this.itemBuilder,
  this.onReorder,
  this.itemWidth = 48,
  this.delayed = true,
  this.onDragStarted,
  this.onDragEnded,
  this.onLeave,
  this.onWillAccept,
});