maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

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