nextIsComma property

bool get nextIsComma

Checks whether the next token is a comma.

Return value:

  • bool: true if the next token is a comma, otherwise false.

Implementation

bool get nextIsComma => next?.type == TokenType.COMMA;