beginInteraction method

void beginInteraction({
  1. bool instantBackdrop = false,
})

Gesture-start hook: kill any in-flight settle spring and pending grid fade-out, show the thirds grid, drop the idle backdrop. instantBackdrop mirrors telegram's non-animated reset on handle drags vs the 0.16s fade on scroll gestures.

Implementation

void beginInteraction({bool instantBackdrop = false}) {
  _settleAnimator.cancel();
  _gridFadeTimer?.cancel();
  _gridFadeTimer = null;
  _gridAnimator.animate(target: 1, duration: _gridFade).unawaited();
  _hideBackdrop(animated: !instantBackdrop);
}