whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? listTokens(
    1. List<List<int>> value
    )?,
  2. TResult? tokens(
    1. List<int> value
    )?,
  3. TResult? listString(
    1. List<String> value
    )?,
  4. TResult? string(
    1. String value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(List<List<int>> value)? listTokens,
  TResult? Function(List<int> value)? tokens,
  TResult? Function(List<String> value)? listString,
  TResult? Function(String value)? string,
}) =>
    throw _privateConstructorUsedError;