CustomButton constructor
const
CustomButton({
- Key? key,
- String variant = 'primary',
- String size = 'lg',
- VoidCallback? onDis,
- String? icon,
- bool expand = true,
- required String txt,
- required VoidCallback onTap,
- bool enabled = true,
Implementation
const CustomButton({
super.key,
this.variant = 'primary',
this.size = 'lg',
this.onDis,
this.icon,
this.expand = true,
required this.txt,
required this.onTap,
this.enabled = true,
}
);