MicropayButton constructor
const
MicropayButton({
- Key? key,
- VoidCallback? onPressed,
- int? amount,
- String currency = 'KES',
- String? label,
- bool isLoading = false,
- bool isDisabled = false,
- MicropayButtonSize size = MicropayButtonSize.medium,
- MicropayButtonStyle style = MicropayButtonStyle.primary,
- Widget? icon,
- bool showMpesaLogo = true,
Implementation
const MicropayButton({
super.key,
this.onPressed,
this.amount,
this.currency = 'KES',
this.label,
this.isLoading = false,
this.isDisabled = false,
this.size = MicropayButtonSize.medium,
this.style = MicropayButtonStyle.primary,
this.icon,
this.showMpesaLogo = true,
});