when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult paymentMode(
- String currencyCode,
- int amount,
- IntentFutureUsage? setupFutureUsage,
- CaptureMethod? captureMethod,
- required TResult setupMode(
- String? currencyCode,
- 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;