onDragEnd method
Implementation
@protected
bool? onDragEnd(DragEndDetails e) {
if (enabledAnimate && e.velocity != Velocity.zero) {
endDirection = e.velocity.pixelsPerSecond.direction;
final simulation = createSimulation(e);
if (simulation != null) controller.animateWith(simulation);
}
return null;
}