formatSource method

String formatSource(
  1. String source,
  2. GenerationConfig config
)

Formats a library with the selected output width.

Implementation

String formatSource(String source, GenerationConfig config) => DartFormatter(
  languageVersion: Version(3, 13, 0),
  pageWidth: config.pageWidth,
).format(source);