ModButton constructor

const ModButton({
  1. Key? key,
  2. String? title,
  3. IconData? leftIcon,
  4. IconData? rightIcon,
  5. IconData? centerIcon,
  6. IconData? loadingIcon = Icons.refresh,
  7. double borderRadius = 4.0,
  8. ModButtonType type = ModButtonType.defaultType,
  9. ModBorderType borderType = ModBorderType.solid,
  10. ModButtonSize size = ModButtonSize.md,
  11. required Future<void> onPressed()?,
  12. String? loadingText,
  13. ModButtonType borderColor = ModButtonType.defaultType,
  14. Color? textColor,
  15. Color? backgroundColor,
  16. bool disabled = false,
  17. bool autosize = true,
  18. TextAlign textAlign = TextAlign.center,
  19. ModIconCenterAlign iconCenterAlign = ModIconCenterAlign.top,
  20. double? fontSize,
})

Implementation

const ModButton({
  super.key,
  this.title,
  this.leftIcon,
  this.rightIcon,
  this.centerIcon,
  this.loadingIcon = Icons.refresh,
  this.borderRadius = 4.0,
  this.type = ModButtonType.defaultType,
  this.borderType = ModBorderType.solid,
  this.size = ModButtonSize.md,
  required this.onPressed,
  this.loadingText,
  this.borderColor = ModButtonType.defaultType,
  this.textColor,
  this.backgroundColor,
  this.disabled = false,
  this.autosize = true,
  this.textAlign = TextAlign.center,
  this.iconCenterAlign = ModIconCenterAlign.top,
  this.fontSize,
});