MenuButton constructor

const MenuButton({
  1. TextStyle textStyle = const TextStyle(color: Colors.black),
  2. String textOnOpen = "Close",
  3. String textOnClose = "Open",
  4. Color bgColor = Colors.white,
  5. IconData iconOnClose = Icons.menu,
  6. IconData iconOnOpen = Icons.close,
  7. Color iconColor = Colors.black,
  8. double borderRadius = 30,
  9. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 3, horizontal: 15),
  10. double iconSize = 20,
})

Implementation

const MenuButton({
  this.textStyle = const TextStyle(color: Colors.black),
  this.textOnOpen = "Close",
  this.textOnClose = "Open",
  this.bgColor = Colors.white,
  this.iconOnClose = Icons.menu,
  this.iconOnOpen = Icons.close,
  this.iconColor = Colors.black,
  this.borderRadius = 30,
  this.padding = const EdgeInsets.symmetric(vertical: 3, horizontal: 15),
  this.iconSize = 20,
});