SharedPartBuilder constructor

SharedPartBuilder(
  1. List<Generator> _generators, {
  2. String formatOutput(
    1. String code
    ) = _defaultFormatOutput,
  3. bool allowSyntaxErrors = false,
  4. bool? writeDescriptions,
  5. BuilderOptions? options,
})

Creates a builder that generates shared part files.

@param _generators The list of generators to run @param formatOutput Function to format the generated code @param allowSyntaxErrors Whether to process files with syntax errors @param writeDescriptions Whether to include generator descriptions in comments @param options Additional configuration options

Implementation

SharedPartBuilder(
  super._generators, {
  super.formatOutput = _defaultFormatOutput,
  super.allowSyntaxErrors,
  super.writeDescriptions,
  super.options,
}) : super(outputExtensions: <String>{extension}, header: '');