onLongStart method

void onLongStart(
  1. LongPressStartDetails event
)

Implementation

void onLongStart(LongPressStartDetails event) async {
  position = event.localPosition;

  update();

  if (isMouse) {
    return;
  }

  await Vibration.vibrate(duration: 50, amplitude: 200);

  showEffect(null);
}