ApplePaySheetError.invalidShippingField constructor

  1. @FreezedUnionValue('InvalidShippingAddress')
  2. @JsonSerializable(explicitToJson: true)
const ApplePaySheetError.invalidShippingField({
  1. required InvalidShippingField field,
  2. String? message,
})

Use this in case the shipping address is invalid

Implementation

@FreezedUnionValue('InvalidShippingAddress')
@JsonSerializable(explicitToJson: true)

/// Use this in case the shipping address is invalid
const factory ApplePaySheetError.invalidShippingField(
    {
    // Field that will be marked as invalid
    required InvalidShippingField field,
    // message that needs to be displayed on the sheet
    String? message}) = _ApplePaySheetErrorInvalidShipping;