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