hide method

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

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

Implementation

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