health property

DoctorHealth get health

Overall health assessment.

Implementation

DoctorHealth get health {
  if (buildExitCode != null && buildExitCode != 0) {
    return DoctorHealth.unhealthy;
  }
  if (hasInvalidType) {
    return DoctorHealth.warnings;
  }
  return DoctorHealth.healthy;
}