clean method
Implementation
Future clean() async {
progress.update("Cleaning build cache for $name");
var cleanProcess = await Process.start(
ReedmaceCommandRunner.instance.binaryName, ["pub", "run", "build_runner", "clean"],
runInShell: true, workingDirectory: path);
_process = cleanProcess;
var cleanExitCode = await cleanProcess.exitCode;
if (hasBeenCancelled) return;
if (cleanExitCode != 0) {
progress.fail("Failed to clean $name");
if (throwOnFail) {
throw "Failed to clean $name";
} else {
return cleanExitCode;
}
}
}