close method

void close()

Programmatically returns the curtain overlay back to its default closed position, hiding the underlay content surface.

Triggers a reverse simulation pass. Safe to invoke via localized app buttons or external state routines.

Implementation

void close() {
  if (_animationController != null) {
    _onAnimateOutTrigger?.call();
    setAnimating(true);
    _animationController!.reverse(from: _progress).then((_) {
      setAnimating(false);
    });
  }
}