PostProcessBuilder class abstract

A builder which runs 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

hashCode int
The hash code for this object.
no setterinherited
inputExtensions Iterable<String>
The extensions this builder expects for its inputs.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(PostProcessBuildStep buildStep) FutureOr<void>
Generates the outputs and deletes for buildStep.
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