PrimaryButton constructor
const
PrimaryButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- bool disabled = false,
- bool loading = false,
Implementation
const PrimaryButton({
Key? key,
required this.label,
this.onPressed,
this.disabled = false,
this.loading = false,
}) : super(key: key);