maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult card(
    1. PaymentMethodData paymentMethodData
    )?,
  2. TResult cardFromToken(
    1. PaymentMethodDataCardFromToken paymentMethodData
    )?,
  3. TResult cardFromMethodId(
    1. PaymentMethodDataCardFromMethod paymentMethodData
    )?,
  4. TResult alipay(
    1. PaymentMethodData paymentMethodData
    )?,
  5. TResult cashAppPay(
    1. PaymentMethodData paymentMethodData
    )?,
  6. TResult ideal(
    1. PaymentMethodDataIdeal paymentMethodData
    )?,
  7. TResult aubecs(
    1. PaymentMethodDataAubecs paymentMethodData
    )?,
  8. TResult bancontact(
    1. PaymentMethodData paymentMethodData
    )?,
  9. TResult giroPay(
    1. PaymentMethodData paymentMethodData
    )?,
  10. TResult eps(
    1. PaymentMethodData paymentMethodData
    )?,
  11. TResult affirm(
    1. PaymentMethodData paymentMethodData
    )?,
  12. TResult grabPay(
    1. PaymentMethodData paymentMethodData
    )?,
  13. TResult p24(
    1. PaymentMethodData paymentMethodData
    )?,
  14. TResult fpx(
    1. PaymentMethodDataFpx paymentMethodData
    )?,
  15. TResult sepaDebit(
    1. PaymentMethodDataSepa paymentMethodData
    )?,
  16. TResult sofort(
    1. PaymentMethodDataSofort paymentMethodData
    )?,
  17. TResult afterpayClearpay(
    1. PaymentMethodDataAfterPay paymentMethodData
    )?,
  18. TResult oxxo(
    1. PaymentMethodData paymentMethodData
    )?,
  19. TResult klarna(
    1. PaymentMethodData paymentMethodData
    )?,
  20. TResult payPal(
    1. PaymentMethodData paymentMethodData
    )?,
  21. TResult revolutPay(
    1. PaymentMethodData paymentMethodData
    )?,
  22. TResult usBankAccount(
    1. PaymentMethodDataUsBank paymentMethodData
    )?,
  23. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(PaymentMethodData paymentMethodData)? card,
  TResult Function(PaymentMethodDataCardFromToken paymentMethodData)?
      cardFromToken,
  TResult Function(PaymentMethodDataCardFromMethod paymentMethodData)?
      cardFromMethodId,
  TResult Function(PaymentMethodData paymentMethodData)? alipay,
  TResult Function(PaymentMethodData paymentMethodData)? cashAppPay,
  TResult Function(PaymentMethodDataIdeal paymentMethodData)? ideal,
  TResult Function(PaymentMethodDataAubecs paymentMethodData)? aubecs,
  TResult Function(PaymentMethodData paymentMethodData)? bancontact,
  TResult Function(PaymentMethodData paymentMethodData)? giroPay,
  TResult Function(PaymentMethodData paymentMethodData)? eps,
  TResult Function(PaymentMethodData paymentMethodData)? affirm,
  TResult Function(PaymentMethodData paymentMethodData)? grabPay,
  TResult Function(PaymentMethodData paymentMethodData)? p24,
  TResult Function(PaymentMethodDataFpx paymentMethodData)? fpx,
  TResult Function(PaymentMethodDataSepa paymentMethodData)? sepaDebit,
  TResult Function(PaymentMethodDataSofort paymentMethodData)? sofort,
  TResult Function(PaymentMethodDataAfterPay paymentMethodData)?
      afterpayClearpay,
  TResult Function(PaymentMethodData paymentMethodData)? oxxo,
  TResult Function(PaymentMethodData paymentMethodData)? klarna,
  TResult Function(PaymentMethodData paymentMethodData)? payPal,
  TResult Function(PaymentMethodData paymentMethodData)? revolutPay,
  TResult Function(PaymentMethodDataUsBank paymentMethodData)? usBankAccount,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;