StandaloneBuilder<S extends SyntheticInput> class

Builder that uses synthetic input and creates one output file for each input file.

Inheritance

Constructors

StandaloneBuilder({String inputFiles = 'lib/*.dart', String outputFiles = 'lib/standalone_(*).dart', required Generator generator, String header = '', String footer = '', Formatter? formatter, String root = ''})
Constructs a StandaloneBuilder object.

Properties

buildExtensions Map<String, List<String>>
Returns a map of type Map<String, List<String>> with content {synthetic input: list of output files}.
no setter
String that will be inserted at the very bottom of the generated file.
finalinherited
formatter → Formatter
A function with signature String Function(String input). Defaults to DartFormatter().format.
finalinherited
generator → Generator
Instance of Generator.
final
hashCode int
The hash code for this object.
no setterinherited
String that will be inserted at the top of the generated file below the 'DO NOT EDIT' warning message.
finalinherited
inputFiles String
Input files. Specify the complete path relative to the root directory.
finalinherited
outputFiles String
Path to output files. The symbol (*) will be replaced with the corresponding input file name (omitting the extension).
final
root String
The root directory of the package the build is applied to. This variable does not need to be set if the build command is initiated from the root directory of the package.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syntheticInput → S
The synthetic input used by this builder.
finalinherited

Methods

arrangeContent(String source, {String generatedBy = ''}) String
Returns the generated source code after adding the header and footer.
inherited
build(BuildStep buildStep) FutureOr<void>
Generates the outputs for a given BuildStep.
libraryAssetIds(BuildStep buildStep) Future<List<AssetId>>
Returns a list of unordered library asset ids.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderedLibraryAssetIds(BuildStep buildStep) Future<Set<AssetId>>
Returns a ordered set of library asset ids ordered in reverse topological dependency order.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited