whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;