MephistoIconButton constructor

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

Implementation

const MephistoIconButton(
    {super.key,
    required this.text,
    required this.onClick,
    this.isDisabled = false,
    this.isLoading = false,
    this.opacity = 1,
    required this.icon,
    this.direction = TextDirection.ltr,
    this.bgColor,
    this.disabledBgColor,
    this.variant = "lg",
    this.isBold = true});