hide method

Future<void> hide()

Hides the spotlight overlay with a reverse animation.

This method should be called before removing the overlay from the widget tree.

Implementation

Future<void> hide() async {
  if (!_tracking) return;
  _tracking = false;
  _updateTimer?.cancel();
  _controller.reverse();
}