CheckoutButton constructor

const CheckoutButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. bool isEnabled = true,
  4. String text = 'Pay Now',
  5. String? amount,
  6. EdgeInsets? padding,
  7. double? width,
  8. double height = 56,
  9. List<Color>? beforeColors,
  10. List<Color>? afterColors,
})

Implementation

const CheckoutButton({
  Key? key,
  this.onPressed,
  this.isEnabled = true,
  this.text = 'Pay Now',
  this.amount,
  this.padding,
  this.width,
  this.height = 56,
  this.beforeColors,
  this.afterColors,
}) : super(key: key);