when<TResult extends Object?> method

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

Implementation

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