callRunner function

Future<void> callRunner()

Implementation

Future<void> callRunner() async {
  final process = await Process.start(
    'flutter',
    [
      'packages',
      'pub',
      'run',
      'build_runner',
      'build',
      '--delete-conflicting-outputs',
    ],
    runInShell: true,
    workingDirectory: projectRoot,
  );

  await stdout.addStream(process.stdout);
  await stderr.addStream(process.stderr);
  print("✅ injector update done");
}