when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. Element card,
    2. BillingDetails? billingDetails
    ), {
  2. required TResult id(
    1. String id
    ),
  3. required TResult token(
    1. CardTokenPaymentMethod card,
    2. 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;