SyntheticBuilder<S extends SyntheticInput> class
abstract
Base class of a builder that uses synthetic input.
For more information about synthetic input see: Writing an Aggregate Builder.
- Implementers
Constructors
- SyntheticBuilder({required String inputFiles, String header = '', Formatter? formatter})
-
Super constructor of an object of type
SyntheticBuilder
.
Properties
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setterinherited
-
String that will be inserted at the very bottom of the
generated file.
final
- formatter → Formatter
-
A function with signature
String Function(String input)
. Defaults toDartFormatter().format
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- header → String
-
String that will be inserted at the top of the
generated file below the 'DO NOT EDIT' warning message.
final
- inputFiles → String
-
Input files. Specify the complete path relative to the
root directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syntheticInput → S
-
The synthetic input used by this builder.
final
Methods
-
arrangeContent(
String source, {String generatedBy = ''}) → String - Returns the generated source code after adding the header and footer.
-
build(
BuildStep buildStep) → FutureOr< void> -
Generates the outputs for a given
BuildStep
.inherited -
libraryAssetIds(
BuildStep buildStep) → Future< List< AssetId> > - Returns a list of unordered library asset ids.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited