HTFormatter constructor

HTFormatter({
  1. FormatterConfig config = const FormatterConfig(),
  2. HTLexicon? lexicon,
  3. HTParser? parser,
})

Implementation

HTFormatter(
    {this.config = const FormatterConfig(),
    HTLexicon? lexicon,
    HTParser? parser})
    : _lexicon = lexicon ?? HTDefaultLexicon(),
      _parser = parser ?? HTDefaultParser() {
  _lexer = HTLexer(lexicon: _lexicon);
}