DraggableAnimation<T> constructor
const
DraggableAnimation<T> ({
- Key? key,
- required List<
T> items, - required DraggableAnimationDisplay displayer,
- required Widget builder(
- T data
- Widget feedbackBuilder(
- T data
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.linear,
- Clip clipBehavior = Clip.none,
- dynamic onChange(
- T from,
- T to
- Function? onDragStart,
- Function? onDragStop,
- dynamic onDragMove()?,
Implementation
const DraggableAnimation({
super.key,
required this.items,
required this.displayer,
required this.builder,
this.feedbackBuilder,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.linear,
this.clipBehavior = Clip.none,
this.onChange,
this.onDragStart,
this.onDragStop,
this.onDragMove,
});