bySmartRateAccuracy method
Implementation
int? bySmartRateAccuracy(SmartRateAccuracy accuracy) {
if (accuracy.matches(SmartRateAccuracy.percentile50)) {
return percentile50;
} else if (accuracy.matches(SmartRateAccuracy.percentile75)) {
return percentile75;
} else if (accuracy.matches(SmartRateAccuracy.percentile85)) {
return percentile85;
} else if (accuracy.matches(SmartRateAccuracy.percentile90)) {
return percentile90;
} else if (accuracy.matches(SmartRateAccuracy.percentile95)) {
return percentile95;
} else if (accuracy.matches(SmartRateAccuracy.percentile97)) {
return percentile97;
} else if (accuracy.matches(SmartRateAccuracy.percentile99)) {
return percentile99;
}
return null;
}