asBuilder method

Builder asBuilder({
  1. String extension = '.template.dart',
})

Returns the compiler wrapped as a Builder.

Implementation

Builder asBuilder({String extension = '.template.dart'}) {
  return LibraryBuilder(
    this,
    formatOutput: (s) => _formatter.format(s),
    generatedExtension: extension,
    header: '',
  );
}