maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. Element ideal,
    2. BillingDetails? billingDetails
    )?, {
  2. TResult id(
    1. String id
    )?,
  3. TResult withBank(
    1. IdealBankData ideal,
    2. BillingDetails? billingDetails
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  TResult Function(@ElementConverter() Element ideal,
          @JsonKey(name: "billing_details") BillingDetails? billingDetails)?
      $default, {
  TResult Function(String id)? id,
  TResult Function(IdealBankData ideal,
          @JsonKey(name: "billing_details") BillingDetails? billingDetails)?
      withBank,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;