PlatformPaySheetUpdateParams.applePay constructor

  1. @JsonSerializable(explicitToJson: true)
const PlatformPaySheetUpdateParams.applePay({
  1. required List<ApplePayCartSummaryItem> summaryItems,
  2. required List<ApplePayShippingMethod> shippingMethods,
  3. List<ApplePaySheetError>? errors,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory PlatformPaySheetUpdateParams.applePay({
  /// list of updated summary items
  required List<ApplePayCartSummaryItem> summaryItems,

  /// list of updated shipping methods
  required List<ApplePayShippingMethod> shippingMethods,

  /// In case user input is wrong use this to display the errors in the apple pay sheet.
  List<ApplePaySheetError>? errors,
}) = _PlatformPaySheetUpdateParams;