cautionCowRatio property Null safety
전체 개체 숫자 대비 주의 상태 개체 수의 비율입니다.
Implementation
double get cautionCowRatio {
double ratio = (cautionCowCnt) / (sum == 0 ? 1 : sum);
return ratio == 0 ? 0.05 : ratio;
}
전체 개체 숫자 대비 주의 상태 개체 수의 비율입니다.
double get cautionCowRatio {
double ratio = (cautionCowCnt) / (sum == 0 ? 1 : sum);
return ratio == 0 ? 0.05 : ratio;
}