CustomButton constructor

const CustomButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. bool enableEffectClicked = true,
  4. Color? activeColor,
  5. Color? disabledColor,
  6. required String text,
  7. TextStyle textStyle(
    1. TextStyle style
    )?,
  8. Color? textColor,
  9. double? textSize,
  10. Widget builderText(
    1. String
    )?,
  11. double border = 8.0,
  12. double height = 50.0,
  13. double elevation = 8.0,
})

Implementation

const CustomButton({super.key,
  this.onPressed,
  this.enableEffectClicked = true,
  this.activeColor,
  this.disabledColor,
  required this.text,
  this.textStyle,
  this.textColor,
  this.textSize,
  this.builderText,
  this.border = 8.0,
  this.height = 50.0,
  this.elevation = 8.0,
})  : assert(disabledColor != null);