PostProcessBuilder class

A builder which runes in a special phase at the end of the build.

They are different from a normal Builder in several ways:

  • They don't have to declare output extensions, and can output any file as long as it doesn't conflict with an existing one.
  • They can only read their primary input.
  • They will not cause optional actions to run - they will only run on assets that were built as a part of the normal build.
  • They all run in a single phase, and thus can not see the outputs of any other PostProcessBuilders.
  • Because they run in a separate phase, after other builders, none of thier outputs can be consumed by Builders.

Because of these restrictions, these builders should never be used to output Dart files, or any other file which would should be processed by normal Builders.

Implementers

Constructors

PostProcessBuilder()

Properties

inputExtensions → Iterable<String>
The extensions this builder expects for its inputs.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build(PostProcessBuildStep buildStep) → FutureOr<void>
Generates the outputs and deletes for buildStep.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited