animateRestrict method

Future<void> animateRestrict()

Implementation

Future<void> animateRestrict() async {
  if (_visibilityController.isDismissed) return;
  if (_restrictController.isAnimating) return;
  _animationKey = null;
  _naturalElasticController.stop();
  _restrictController.reset();

  await _restrictController.animateTo(
    1.0,
    duration: _restrictDuration,
    curve: _restrictCurve,
  );
}