maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult invalidShippingField(
    1. _ApplePaySheetErrorInvalidShipping value
    )?,
  2. TResult unserviceableShippingAddress(
    1. _ApplePaySheetErrorUnserviceableShipping value
    )?,
  3. TResult invalidCouponCode(
    1. _ApplePaySheetErrorInvalidCouponCode value
    )?,
  4. TResult expiredCouponCode(
    1. _ApplePaySheetErrorExpiredCouponCode value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(_ApplePaySheetErrorInvalidShipping value)?
      invalidShippingField,
  TResult Function(_ApplePaySheetErrorUnserviceableShipping value)?
      unserviceableShippingAddress,
  TResult Function(_ApplePaySheetErrorInvalidCouponCode value)?
      invalidCouponCode,
  TResult Function(_ApplePaySheetErrorExpiredCouponCode value)?
      expiredCouponCode,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;