MuseButton constructor

const MuseButton({
  1. Key? key,
  2. String? text,
  3. IconData? icon,
  4. ButtonType type = ButtonType.normal,
  5. ButtonSize size = ButtonSize.normal,
  6. ButtonNativeType nativeType = ButtonNativeType.normal,
  7. ButtonBorderType borderType = ButtonBorderType.normal,
  8. ButtonColors? colors,
  9. bool hairline = false,
  10. bool disabled = false,
  11. bool autofocus = false,
  12. IconData? iconPrefix,
  13. IconAlignment iconPosition = IconAlignment.start,
  14. EdgeInsetsGeometry? padding,
  15. double? width,
  16. double? height,
  17. double? fontSize,
  18. double? iconSize,
  19. double? iconGap,
  20. VoidCallback? click,
  21. VoidCallback? longPress,
  22. Widget? slot,
})

Implementation

const MuseButton({
  super.key,
  this.text,
  this.icon,
  this.type = ButtonType.normal,
  this.size = ButtonSize.normal,
  this.nativeType = ButtonNativeType.normal,
  this.borderType = ButtonBorderType.normal,
  this.colors,
  this.hairline = false,
  this.disabled = false,
  this.autofocus = false,
  this.iconPrefix,
  this.iconPosition = IconAlignment.start,
  this.padding,
  this.width,
  this.height,
  this.fontSize,
  this.iconSize,
  this.iconGap,
  this.click,
  this.longPress,
  this.slot,
});