WButton constructor
const
WButton({
- Key? key,
- required String text,
- String? className,
- VoidCallback? onPressed,
- Color? backgroundColor,
- Color? textColor,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- bool isLoading = false,
- bool isDisabled = false,
- Widget? icon,
- ButtonSize size = ButtonSize.medium,
- Border? border,
- List<
BoxShadow> ? boxShadow,
Implementation
const WButton({
super.key,
required this.text,
this.className,
this.onPressed,
this.backgroundColor,
this.textColor,
this.padding,
this.borderRadius,
this.isLoading = false,
this.isDisabled = false,
this.icon,
this.size = ButtonSize.medium,
this.border,
this.boxShadow,
});