ModulaHamburgerButton constructor

const ModulaHamburgerButton({
  1. required bool isOpen,
  2. required ValueChanged<bool> onToggle,
  3. Key? key,
  4. double size = 48.0,
  5. Duration animationDuration = const Duration(milliseconds: 300),
  6. Color iconColor = Colors.black,
  7. Color backgroundColor = Colors.transparent,
  8. double borderRadius = 8.0,
  9. EdgeInsets padding = const EdgeInsets.all(8),
  10. IconData? openIcon = Icons.menu,
  11. IconData? closeIcon = Icons.close,
  12. HamburgerAnimation? animation = HamburgerAnimation.fade,
})

Implementation

const ModulaHamburgerButton({
  required this.isOpen,
  required this.onToggle,
  super.key,
  this.size = 48.0,
  this.animationDuration = const Duration(milliseconds: 300),
  this.iconColor = Colors.black,
  this.backgroundColor = Colors.transparent,
  this.borderRadius = 8.0,
  this.padding = const EdgeInsets.all(8),
  this.openIcon = Icons.menu,
  this.closeIcon = Icons.close,
  this.animation = HamburgerAnimation.fade,
});