ModulaHamburgerButton constructor
const
ModulaHamburgerButton({
- required bool isOpen,
- required ValueChanged<
bool> onToggle, - Key? key,
- double size = 48.0,
- Duration animationDuration = const Duration(milliseconds: 300),
- Color iconColor = Colors.black,
- Color backgroundColor = Colors.transparent,
- double borderRadius = 8.0,
- EdgeInsets padding = const EdgeInsets.all(8),
- IconData? openIcon = Icons.menu,
- IconData? closeIcon = Icons.close,
- 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,
});