MicropayButton constructor

const MicropayButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. int? amount,
  4. String currency = 'KES',
  5. String? label,
  6. bool isLoading = false,
  7. bool isDisabled = false,
  8. MicropayButtonSize size = MicropayButtonSize.medium,
  9. MicropayButtonStyle style = MicropayButtonStyle.primary,
  10. Widget? icon,
})

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,
});