whenOrNull<TResult extends Object?> method

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

Implementation

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