isIdentifier static method

bool isIdentifier(
  1. String token
)

returns true if token is an identifier

Implementation

static bool isIdentifier(String token) =>
    regExpIdentifier.stringMatch(token) == token;