runDoctor function

Future<void> runDoctor()

Runs Flutter doctor to check environment and dependencies.

Implementation

Future<void> runDoctor() async {
  ConsoleLog.title('Running Flutter doctor...');
  final code = await ProcessRunner.runFlutter(['doctor', '-v']);
  if (code == 0) {
    ConsoleLog.success('Flutter doctor completed.');
  } else {
    ConsoleLog.warning('Flutter doctor exited with code $code.');
  }
}