isValidVarCharCode function Null safety

bool isValidVarCharCode(
  1. int cc,
  2. bool firstChar
)

Test if the given character can be used in a variable name.

Implementation

bool isValidVarCharCode(int cc, bool firstChar)
 => StringUtil.isCharCode(cc, lower: true, upper: true, digit: !firstChar)
    || cc == $underscore || cc == $$;