hide method

void hide({
  1. bool isShowHideAnimation = true,
})

Use to hide GZXDropdownMenu. If you don't need to show the hidden animation, isShowHideAnimation pass in false, Like when you click on another GZXDropdownHeaderItem.

Implementation

void hide({bool isShowHideAnimation = true}) {
  this.isShowHideAnimation = isShowHideAnimation;
  isShow = false;
  notifyListeners();
}