build method

  1. @override
FutureOr<Null> build (PostProcessBuildStep buildStep)
override

Generates the outputs and deletes for buildStep.

Implementation

@override
FutureOr<Null> build(PostProcessBuildStep buildStep) {
  if (!isEnabled) return null;
  if (exclude.any((g) => g.matches(buildStep.inputId.path))) return null;
  buildStep.deletePrimaryInput();
  return null;
}