when<TResult extends Object?> method
TResult
when<TResult extends Object?>(
- TResult $default(), {
- required TResult card(
- CardTokenParams params
- required TResult bankAccount(
- BankAccountTokenParams params
- required TResult pii(
- 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;