setDragDuration method
Sets the duration of the slide.
Implementation
void setDragDuration(Duration duration) {
if (_isDisposed) {
return;
}
if (duration < Duration.zero) {
duration = Duration.zero;
} else if (duration > value.duration) {
duration = value.duration;
}
value = value.copyWith(dragDuration: duration);
}