Keyword constructor Null safety

const Keyword(
  1. String lexeme,
  2. String name,
  3. KeywordStyle keywordStyle,
  4. {bool isModifier = false,
  5. bool isTopLevelKeyword = false,
  6. int precedence = NO_PRECEDENCE}
)

Initialize a newly created keyword.

Implementation

const Keyword(String lexeme, String name, this.keywordStyle,
    {bool isModifier: false,
    bool isTopLevelKeyword: false,
    int precedence: NO_PRECEDENCE})
    : super(lexeme, name, precedence, KEYWORD_TOKEN,
          isModifier: isModifier, isTopLevelKeyword: isTopLevelKeyword);