formatString method

String formatString(
  1. String content, {
  2. FormatterConfig? config,
})

Implementation

String formatString(String content, {FormatterConfig? config}) {
  final tokens = _lexer.lex(content);
  final nodes = _parser.parseTokens(tokens);
  final result = format(nodes, config: config);
  return result;
}