WButton constructor

const WButton({
  1. Key? key,
  2. required String text,
  3. String? className,
  4. VoidCallback? onPressed,
  5. Color? backgroundColor,
  6. Color? textColor,
  7. EdgeInsetsGeometry? padding,
  8. BorderRadius? borderRadius,
  9. bool isLoading = false,
  10. bool isDisabled = false,
  11. Widget? icon,
  12. ButtonSize size = ButtonSize.medium,
  13. Border? border,
  14. 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,
});