maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult declaration(
- Declaration? declaration
- TResult expression(
- Expression? expression
- TResult oneOf(
- List<
ExpectationType> expectations
- List<
- TResult token()?,
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;