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