isComment static method

bool isComment(
  1. String token
)

returns true if input matches regex of any comment single line or multiline

Implementation

static bool isComment(String token) =>
    regExpAnyComment.stringMatch(token) == token;