BuildOutput class abstract final

The output of a build hook (hook/build.dart) invocation.

A package can optionally provide build hook (hook/build.dart). If such a hook exists, it will be automatically run, by the Flutter and Dart SDK tools. The hook is expect to produce a specific output which BuildOutput can produce.

Constructors

BuildOutput({DateTime? timestamp, Iterable<Asset>? assets, Iterable<Uri>? dependencies, Map<String, Object>? metadata})
Create a build output.
factory

Properties

assets Iterable<Asset>
The assets produced by this build.
no setter
assetsForLinking Map<String, List<Asset>>
The assets produced by this build which should be linked.
no setter
dependencies Iterable<Uri>
The files used by this build.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Start time for the build of this output.
no setter

Methods

addAsset(Asset asset, {String? linkInPackage}) → void
Adds Assets produced by this build or dry run.
addAssets(Iterable<Asset> assets, {String? linkInPackage}) → void
Adds Assets produced by this build or dry run.
addDependencies(Iterable<Uri> dependencies) → void
Adds files used by this build.
addDependency(Uri dependency) → void
Adds file used by this build.
addMetadata(Map<String, Object> metadata) → void
Adds metadata to be passed to build hook invocations of dependent packages.
addMetadatum(String key, Object value) → void
Adds metadata to be passed to build hook invocations of dependent packages.
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 Properties

latestVersion → Version
The version of BuildOutput.
no setter