callBuiltRunner function
Future<void>
callBuiltRunner(
)
Implementation
Future<void> callBuiltRunner() async {
print("🚀 Running build_runner...");
final processClean = await Process.start(
"flutter",
["clean"],
runInShell: true,
workingDirectory: projectRoot,
);
await stdout.addStream(processClean.stdout);
await stderr.addStream(processClean.stderr);
Map<String, String> devPluginsToUpdate = PluginList.devPluginsToUpdate;
await removeDependencies(devPluginsToUpdate, isDev: true);
for (final plugin in devPluginsToUpdate.keys) {
await _updatePlugin(plugin, isDev: true);
}
final processUpdate = await Process.start("flutter", [
"pub",
"upgrade",
"--major-versions",
], runInShell: true);
await stdout.addStream(processUpdate.stdout);
await stderr.addStream(processUpdate.stderr);
}