mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<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
    )?,
})
inherited

Implementation

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