NesIconButton constructor

const NesIconButton({
  1. Key? key,
  2. required NesIconData icon,
  3. VoidCallback? onPress,
  4. VoidCallback? onPressStart,
  5. VoidCallback? onPressEnd,
  6. Size? size,
  7. Color? primaryColor,
  8. Color? secondaryColor,
  9. bool? disabled,
})

A button widget that wraps a NesIcon into a pressable button.

Implementation

const NesIconButton({
  super.key,
  required this.icon,
  this.onPress,
  this.onPressStart,
  this.onPressEnd,
  this.size,
  this.primaryColor,
  this.secondaryColor,
  this.disabled,
});