toggle method
Convenience method for showing/hiding the popover.
This method should typically not be called while the widget tree is being rebuilt.
Implementation
Future<void> toggle({bool animated = true}) =>
_animation.status.isForwardOrCompleted ? hide(animated: animated) : show(animated: animated);