XIconButton constructor

const XIconButton({
  1. Key? key,
  2. required IconData iconData,
  3. VoidCallback? onPressed,
  4. String? tooltip,
  5. bool disabled = false,
  6. bool isSelected = false,
  7. bool isDisplayed = true,
  8. Color color = Colors.black54,
  9. Color selectedColor = Colors.blueGrey,
  10. Color hoverColor = Colors.black12,
  11. Color backgroundColor = Colors.transparent,
  12. Color iconColor = Colors.black54,
  13. double iconSize = 15,
  14. double width = 30,
  15. double height = 30,
})

Implementation

const XIconButton({
  super.key,
  required this.iconData,
  this.onPressed,
  this.tooltip,
  this.disabled = false,
  this.isSelected = false,
  this.isDisplayed = true,
  this.color = Colors.black54,
  this.selectedColor = Colors.blueGrey,
  this.hoverColor = Colors.black12,
  this.backgroundColor = Colors.transparent,
  this.iconColor = Colors.black54,
  this.iconSize = 15,
  this.width = 30,
  this.height = 30,
});