hide method
Hides the popover.
Once hidden, the popover will be removed from the widget tree the next time the widget tree rebuilds, and stateful widgets in the popover may lose states as a result.
This method should typically not be called while the widget tree is being rebuilt.
Implementation
Future<void> hide() async {
await _animation.reverse();
_overlay.hide();
notifyListeners();
}