onAnimationStatusChanged property
final
An optional callback that is invoked when the AnimationStatus of the menu changes.
This callback provides a way to determine when the menu is opening or closing. This is necessary because the MenuController.isOpen property remains true throughout the opening, opened, and closing phases, and therefore cannot be used on its own to determine the current animation direction.
Defaults to null.
Implementation
final CupertinoMenuAnimationStatusChangedCallback? onAnimationStatusChanged;