isValidate method Null safety

bool isValidate()

값이 모두 정상적으로 입력이 되었는지 확인합니다.

Implementation

bool isValidate() {
  if (cow == null || dehydration == -1 || feces == -1 || respiAndCough == -1 || snot == -1 || eye == -1 || appearance == -1 || ear == -1 || sensorPosition == -1 || bcs == -1) {
    return false;
  } else {
    return true;
  }
}