CustomButton constructor

CustomButton({
  1. required dynamic text,
  2. required Function onPressedCallBack,
  3. dynamic providerStatus,
  4. dynamic textstyle,
  5. dynamic highLightColor,
  6. double? height,
  7. double width = 0.0,
  8. bool showCount = false,
  9. String? count,
  10. dynamic isActive = false,
})

Implementation

CustomButton(
    {required this.text,
    required this.onPressedCallBack,
    this.providerStatus,
    textstyle,
    highLightColor,
    this.height,
    this.width = 0.0,
    this.showCount = false,
    this.count,
    this.isActive = false})
    : this.highLightColor = highLightColor ?? ColorConstants.secondary;