anyOf method

bool anyOf(
  1. List<TokenType> types
)

Implementation

bool anyOf(List<TokenType> types) => types.contains(peek().type);