breakdownGenerator function

Builder breakdownGenerator(
  1. BuilderOptions options
)

The entry point for the get_it_injector generator.

Implementation

Builder breakdownGenerator(BuilderOptions options) {
  final settings = Settings.fromJson(options.config);

  return LibraryBuilder(
    GetItInjectorBreakdownGenerator(settings),
    formatOutput: (generated) => generated.replaceAll(RegExp(r'//.*|\s'), ''),
    generatedExtension: '.get_it_injector.json',
  );
}