SyntheticBuilder<S extends SyntheticInput> constructor
SyntheticBuilder<S extends SyntheticInput> ({})
Super constructor of an object of type SyntheticBuilder
.
inputFiles
: Path to the input files relative to the package root directory. Glob-style syntax is allowed for example:lib/*.dart
.header
:String
that will be inserted at the top of the generated file below the 'DO NOT EDIT' warning message.footer
: String that will be inserted at the very bottom of the generated file.formatter
: A function with signatureString Function(String input)
that is used to format the generated source code. The default formatter is:DartFormatter().format
. To disable formatting one may pass a closure returning the input:(input) => input
as argument forformatter
.
Implementation
SyntheticBuilder({
required this.inputFiles,
this.header = '',
this.footer = '',
Formatter? formatter,
}) : formatter = formatter ?? DartFormatter().format,
syntheticInput = SyntheticInput.instance<S>();