when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult paymentMode(
    1. String currencyCode,
    2. int amount,
    3. IntentFutureUsage? setupFutureUsage,
    4. CaptureMethod? captureMethod,
    ),
  2. required TResult setupMode(
    1. String? currencyCode,
    2. IntentFutureUsage setupFutureUsage
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String currencyCode, int amount,
          IntentFutureUsage? setupFutureUsage, CaptureMethod? captureMethod)
      paymentMode,
  required TResult Function(
          String? currencyCode, IntentFutureUsage setupFutureUsage)
      setupMode,
}) =>
    throw _privateConstructorUsedError;