whenOrNull<TResult extends Object?> method

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