whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? $default(
- Element card,
- BillingDetails? billingDetails
- TResult? id(
- String id
- TResult? token(
- CardTokenPaymentMethod card,
- BillingDetails? billingDetails
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
TResult? Function(@ElementConverter() Element card,
@JsonKey(name: "billing_details") BillingDetails? billingDetails)?
$default, {
TResult? Function(String id)? id,
TResult? Function(CardTokenPaymentMethod card,
@JsonKey(name: "billing_details") BillingDetails? billingDetails)?
token,
}) =>
throw _privateConstructorUsedError;