maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  1. TResult $default(
    1. TokenType type,
    2. String? name,
    3. Address? address
    )?, {
  2. TResult card(
    1. CardTokenParams params
    )?,
  3. TResult bankAccount(
    1. BankAccountTokenParams params
    )?,
  4. TResult pii(
    1. PIITokenParams params
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
  TResult Function(TokenType type, String? name, Address? address)?
      $default, {
  TResult Function(CardTokenParams params)? card,
  TResult Function(BankAccountTokenParams params)? bankAccount,
  TResult Function(PIITokenParams params)? pii,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;