CrossmintEmbeddedCheckout constructor

const CrossmintEmbeddedCheckout({
  1. Key? key,
  2. required String apiKey,
  3. required CrossmintCheckoutConfig config,
  4. CrossmintCheckoutPayer? payer,
  5. CrossmintCheckoutController? checkoutController,
  6. void onOrderUpdated(
    1. Map<String, Object?> order
    )?,
  7. void onOrderCreationFailed(
    1. String errorMessage
    )?,
  8. void onDiagnostic(
    1. CrossmintCheckoutDiagnostic diagnostic
    )?,
  9. CrossmintCheckoutLoadingBuilder? loadingBuilder,
  10. double defaultHeight = 400,
})

Implementation

const CrossmintEmbeddedCheckout({
  super.key,
  required this.apiKey,
  required this.config,
  this.payer,
  this.checkoutController,
  this.onOrderUpdated,
  this.onOrderCreationFailed,
  this.onDiagnostic,
  this.loadingBuilder,
  this.defaultHeight = 400,
});