run method

Implementation

Future<List<DoctorCheck>> run() async {
  final checks = <DoctorCheck>[
    await _check('Flutter SDK', 'flutter', ['--version']),
    await _check('Dart SDK', 'dart', ['--version']),
    await _check('Android SDK', 'adb', ['version']),
    await _check('CocoaPods', 'pod', ['--version']),
    await _check('Homebrew', 'brew', ['--version']),
    await _check('FVM', 'fvm', ['--version']),
  ];

  if (_platform.isMacOS) {
    checks.add(await _check('Xcode', 'xcodebuild', ['-version']));
  } else {
    checks.add(
      const DoctorCheck(
        name: 'Xcode',
        available: false,
        message: 'macOS only',
      ),
    );
  }

  return checks;
}