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