MephistoButton constructor

const MephistoButton({
  1. Key? key,
  2. required String text,
  3. required Function onClick,
  4. String? variant = "lg",
  5. bool? isBold = true,
  6. bool? isDisabled = false,
  7. bool? isLoading = false,
  8. Color? textColor,
  9. double opacity = 1,
  10. Color? disabledBgColor,
  11. bool? isFullWidth = false,
  12. Color? bgColor,
  13. Widget? content,
})

Implementation

const MephistoButton(
    {super.key,
    required this.text,
    required this.onClick,
    this.variant = "lg",
    this.isBold = true,
    this.isDisabled = false,
    this.isLoading = false,
    this.textColor,
    this.opacity = 1,
    this.disabledBgColor,
    this.isFullWidth = false,
    this.bgColor,
    this.content});