maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  4. 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;