close method

void close()

Closes the morph animation with the calibrated iOS 27 platter collapse, parallel ~183 ms trigger recoil, and centered wide-trigger splash.

Implementation

void close() {
  _closeStartProgress = _animationController.value.clamp(0.0, 1.0);
  _phaseStartTriggerWidth = _currentTriggerWidthProgress().clamp(0.0, 1.0);
  _isClosing = true;
  _lastElapsedSeconds = 0.0;
  if (_animationController.value <= 0.0 && _closeStartProgress <= 0.001) {
    _hasHandedOff = true;
  }
  _runSpring(
    0.0,
    velocityHint: LiquidMorphPhysics.closeVelocityHint,
    tolerance:
        _isInstantProfile ? _instantSettleTolerance : _closeSettleTolerance,
  );
}