hideMagnifier method

void hideMagnifier()

Hide the current magnifier.

This does nothing if there is no magnifier.

Implementation

void hideMagnifier() {
  // This cannot be a check on `MagnifierController.shown`, since
  // it's possible that the magnifier is still in the overlay, but
  // not shown in cases where the magnifier hides itself.
  if (_magnifierController.overlayEntry == null) {
    return;
  }

  _magnifierController.hide();
}