keywords property
Implementation
static final Map<String, TokenType> keywords = {
'flutter::': TokenType.flutterWidget,
'f:': TokenType.flutterWidget, // Add the new shorthand
'parameter::': TokenType.flutterParam,
'p:': TokenType.flutterParam,
'function': TokenType.tartFunction,
'if': TokenType.tartIf,
'else': TokenType.tartElse,
'switch': TokenType.tartSwitch,
'case': TokenType.tartCase,
'default': TokenType.tartDefault,
'for': TokenType.tartFor,
'while': TokenType.tartWhile,
'do': TokenType.tartDo,
'break': TokenType.tartBreak,
'continue': TokenType.tartContinue,
'return': TokenType.tartReturn,
'try': TokenType.tartTry,
'catch': TokenType.tartCatch,
'finally': TokenType.tartFinally,
'throw': TokenType.tartThrow,
'assert': TokenType.tartAssert,
'const': TokenType.tartConst,
'final': TokenType.tartFinal,
'var': TokenType.tartVar,
'late': TokenType.tartLate,
'required': TokenType.required,
'static': TokenType.static,
'async': TokenType.async,
'await': TokenType.await,
'yield': TokenType.yield,
'true': TokenType.boolean,
'false': TokenType.boolean,
'null': TokenType.tartNull,
'toString': TokenType.tartToString,
};