PrimaryButton constructor
const
PrimaryButton({
- Key? key,
- required VoidCallback? onPressed,
- required String text,
- bool enabled = true,
- bool loading = false,
- ButtonStyle? style,
- Color? foregroundColor,
Implementation
const PrimaryButton({
super.key,
required this.onPressed,
required this.text,
this.enabled = true,
this.loading = false,
this.style,
this.foregroundColor,
});