Dock<T extends Object> constructor
const
Dock<T extends Object>({ - Key? key,
- required List<T> items,
- required Widget itemBuilder(
- T item
),
- dynamic onReorder(
- List<T>
)?,
- double itemWidth = 48,
- bool delayed = true,
- dynamic onDragStarted(
- T
)?,
- dynamic onDragEnded(
- T
)?,
- dynamic onLeave(
- T?
)?,
- bool onWillAccept(
- 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,
});