whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? declaration(
- Declaration? declaration
- TResult? expression(
- Expression? expression
- TResult? oneOf(
- List<
ExpectationType> expectations
- List<
- TResult? token()?,
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;