when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult googlePay(
    1. GooglePayParams googlePayParams,
    2. GooglePayPaymentMethodParams googlePayPaymentMethodParams
    ),
  2. required TResult applePay(
    1. ApplePayParams applePayParams
    ),
  3. required TResult web(
    1. PlatformPayWebPaymentRequestCreateOptions options
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(GooglePayParams googlePayParams,
          GooglePayPaymentMethodParams googlePayPaymentMethodParams)
      googlePay,
  required TResult Function(ApplePayParams applePayParams) applePay,
  required TResult Function(PlatformPayWebPaymentRequestCreateOptions options)
      web,
}) =>
    throw _privateConstructorUsedError;