peekName method

bool peekName(
  1. String name
)

Implementation

bool peekName(String name) {
  return token!.type == Token.NAME && token!.text == name;
}