when<TResult extends Object?> method

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

Implementation

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