dartReservedWords top-level constant
Dart's reserved words, which no generated identifier may take.
Deliberately only the reserved words: contextual keywords such as async
or get are legal identifiers and stay usable as data keys and enum values.
Implementation
const Set<String> dartReservedWords = {
'assert',
'break',
'case',
'catch',
'class',
'const',
'continue',
'default',
'do',
'else',
'enum',
'extends',
'false',
'final',
'finally',
'for',
'if',
'in',
'is',
'new',
'null',
'rethrow',
'return',
'super',
'switch',
'this',
'throw',
'true',
'try',
'var',
'void',
'while',
'with',
};