MephistoIconButton constructor
const
MephistoIconButton({ - Key? key,
- required String text,
- required Function onClick,
- bool? isDisabled = false,
- bool? isLoading = false,
- double opacity = 1,
- required Widget? icon,
- TextDirection? direction = TextDirection.ltr,
- Color? bgColor,
- Color? disabledBgColor,
- String? variant = "lg",
- 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});