when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. Element card,
    2. BillingDetails? billingDetails
    ), {
  2. required TResult token(
    1. CardToken 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(CardToken card,
          @JsonKey(name: "billing_details") BillingDetails? billingDetails)
      token,
}) =>
    throw _privateConstructorUsedError;