CustomButton constructor
const
CustomButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- IconData? icon,
- ButtonVariant variant = ButtonVariant.primary,
- bool loading = false,
- bool fullWidth = false,
Implementation
const CustomButton({
super.key,
required this.label,
this.onPressed,
this.icon,
this.variant = ButtonVariant.primary,
this.loading = false,
this.fullWidth = false,
});