maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult $default(
- Element card,
- BillingDetails? billingDetails
- TResult id(
- String id
- TResult token(
- CardTokenPaymentMethod card,
- BillingDetails? billingDetails
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;