BuildConfig class
The parsed values from a build.yaml
file.
- Annotations
-
- @JsonSerializable()
Constructors
-
BuildConfig({String? packageName, required Map<
String, BuildTarget> buildTargets, Map<String, GlobalBuilderConfig> ? globalOptions, Map<String, BuilderDefinition> ? builderDefinitions, Map<String, PostProcessBuilderDefinition> ? postProcessBuilderDefinitions = const {}, List<String> additionalPublicAssets = const []}) -
BuildConfig.fromMap(String packageName, Iterable<
String> dependencies, Map config) -
Create a BuildConfig read a map which was already parsed.
factory
-
BuildConfig.parse(String packageName, Iterable<
String> dependencies, String configYaml, {String? configYamlPath}) -
Create a BuildConfig by parsing
configYaml
.factory -
BuildConfig.useDefault(String packageName, Iterable<
String> dependencies) -
The default config if you have no
build.yaml
file.factory
Properties
-
additionalPublicAssets
→ List<
String> -
final
-
builderDefinitions
→ Map<
String, BuilderDefinition> -
All the
builders
defined in abuild.yaml
file.final -
buildTargets
→ Map<
String, BuildTarget> -
All the
targets
defined in abuild.yaml
file.final -
globalOptions
→ Map<
String, GlobalBuilderConfig> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageName → String
-
final
-
postProcessBuilderDefinitions
→ Map<
String, PostProcessBuilderDefinition> -
All the
post_process_builders
defined in abuild.yaml
file.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBuildConfigDir(
String packageName, Iterable< String> dependencies, String path) → Future<BuildConfig> -
Returns a parsed
BuildConfig
file inpath
, if one exists, otherwise a default config. -
fromPackageDir(
String path) → Future< BuildConfig> -
Returns a parsed
BuildConfig
file inpath
, if one exist, otherwise a default config.