AnimationControllerSwipeHandler constructor
AnimationControllerSwipeHandler({
- required AnimationController controller,
- required ValueGetter<
double> getChildSize, - double openProgressThreshold = kSwipeProgressThreshold,
- double closeProgressThreshold = kSwipeProgressThreshold,
- double minOpenFlingVelocity = kSwipeFlingVelocity,
- double minCloseFlingVelocity = kSwipeFlingVelocity,
- bool reverse = false,
- ValueGetter<
bool> ? isDeactivated, - required DragDirection direction,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Implementation
AnimationControllerSwipeHandler({
required this.controller,
required this.getChildSize,
this.openProgressThreshold = kSwipeProgressThreshold,
this.closeProgressThreshold = kSwipeProgressThreshold,
this.minOpenFlingVelocity = kSwipeFlingVelocity,
this.minCloseFlingVelocity = kSwipeFlingVelocity,
this.reverse = false,
ValueGetter<bool>? isDeactivated,
required DragDirection direction,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) : _isDeactivated = isDeactivated,
super(direction: direction, dragStartBehavior: dragStartBehavior);