onDragEnd method

  1. @protected
bool? onDragEnd(
  1. DragEndDetails e
)
inherited

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