toggleMenu method

  1. @override
void toggleMenu()
override

The function responsible for performing the toggle menu task. Controller toggle function is set to this function.

Implementation

@override
void toggleMenu() {
  if (animationController.isCompleted) {
    closeMenu();
  } else {
    openMenu();
  }
}