DraggableAnimation<T> constructor

const DraggableAnimation<T>({
  1. Key? key,
  2. required List<T> items,
  3. required DraggableAnimationDisplay displayer,
  4. required Widget builder(
    1. T data
    ),
  5. Widget feedbackBuilder(
    1. T data
    )?,
  6. Duration duration = const Duration(milliseconds: 300),
  7. Curve curve = Curves.linear,
  8. Clip clipBehavior = Clip.none,
  9. dynamic onChange(
    1. T from,
    2. T to
    )?,
  10. Function? onDragStart,
  11. Function? onDragStop,
  12. dynamic onDragMove(
    1. Offset
    )?,
})

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,
});