HMButton constructor

const HMButton({
  1. Key? key,
  2. required String content,
  3. Color? fillColor,
  4. Color? textColor,
  5. HMRadius? radius,
  6. HMButtonSize? size,
  7. bool fullWidth = false,
  8. HMButtonVariant? buttonVariant,
  9. Widget? icon,
  10. bool? iconAtLeft = true,
  11. required void onPressed(),
  12. bool disabled = false,
  13. bool hidden = false,
})

Implementation

const HMButton({
  super.key,
  required this.content,
  this.fillColor,
  this.textColor,
  this.radius,
  this.size,
  this.fullWidth = false,
  this.buttonVariant,
  this.icon,
  this.iconAtLeft = true,
  required this.onPressed,
  this.disabled = false,
  this.hidden = false,
});