whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? declaration(
    1. Declaration? declaration
    )?,
  2. TResult? expression(
    1. Expression? expression
    )?,
  3. TResult? oneOf(
    1. List<ExpectationType> expectations
    )?,
  4. TResult? token(
    1. TokenType token,
    2. String? description
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(Declaration? declaration)? declaration,
  TResult? Function(Expression? expression)? expression,
  TResult? Function(List<ExpectationType> expectations)? oneOf,
  TResult? Function(TokenType token, String? description)? token,
}) =>
    throw _privateConstructorUsedError;