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. MainAxisSet? axisSet,
  13. IconAlignment? iconPosition,
  14. EdgeInsetsGeometry? padding,
  15. Gradient? gradient,
  16. List<BoxShadow>? boxShadow,
  17. double? width,
  18. double? height,
  19. double? fontSize,
  20. double? iconSize,
  21. double? iconGap,
  22. VoidCallback? click,
  23. VoidCallback? longPress,
  24. 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.axisSet,
  this.iconPosition,
  this.padding,
  this.gradient,
  this.boxShadow,
  this.width,
  this.height,
  this.fontSize,
  this.iconSize,
  this.iconGap,
  this.click,
  this.longPress,
  this.slot,
});