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