ModButton constructor

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

Implementation

const ModButton({
  super.key,
  this.title,
  this.leftIcon,
  this.rightIcon,
  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.disabled = false,
  this.autosize = true,
  this.textAlign = TextAlign.center,
});