move method

Future move(
  1. Offset snapTarget
)

Implementation

Future move(Offset snapTarget) async {
  animation = Tween(
    begin: deltaNotifier.value,
    end: snapTarget,
  ).animate(
    CurvedAnimation(
      parent: animationController,
      curve: Curves.fastOutSlowIn,
    ),
  );
  if (animationController.isAnimating) animationController.stop();
  animationController.forward(from: 0);
  await Future.delayed(const Duration(milliseconds: 333));
  return;
}