hide method

Future<void> hide()

Hides the currently displayed spotlight with an animation.

If no spotlight is showing, this method returns early.

Implementation

Future<void> hide() async {
  if (_overlayEntry == null) {
    return;
  }
  await _removeCurrentOverlay(animate: true);
}