ModButton constructor
const
ModButton({
- Key? key,
- String? title,
- IconData? leftIcon,
- IconData? rightIcon,
- IconData? loadingIcon = Icons.refresh,
- double borderRadius = 4.0,
- ModButtonType type = ModButtonType.defaultType,
- ModBorderType borderType = ModBorderType.solid,
- ModButtonSize size = ModButtonSize.md,
- required Future<
void> onPressed()?, - String? loadingText,
- ModButtonType borderColor = ModButtonType.defaultType,
- Color? textColor,
- bool disabled = false,
- bool autosize = true,
- 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,
});