getConfidenceFactorFromDouble function
Returns a ConfidenceFactor object for the given confidence
. Returns null if confidence
is null.
confidence
is a double representing the confidence factor to retrieve
Implementation
ConfidenceFactor? getConfidenceFactorFromDouble(double? confidence) {
return confidence == null
? null
: ConfidenceFactor(
value: confidence,
);
}