ModernCustomButton constructor

ModernCustomButton({
  1. required VoidCallback action,
  2. bool show = true,
  3. Color? backgroundColor,
  4. Color? gradientStartColor,
  5. Color? gradientEndColor,
  6. bool disabled = false,
  7. IconData? icon,
  8. String? text,
  9. TextStyle? textStyle,
  10. Widget? customComponent,
  11. Color? iconColor,
  12. double? iconSize,
  13. bool enableGlow = true,
})

Implementation

ModernCustomButton({
  required this.action,
  this.show = true,
  this.backgroundColor,
  this.gradientStartColor,
  this.gradientEndColor,
  this.disabled = false,
  this.icon,
  this.text,
  this.textStyle,
  this.customComponent,
  this.iconColor,
  this.iconSize,
  this.enableGlow = true,
});