getConfidenceFactorFromDouble function

ConfidenceFactor? getConfidenceFactorFromDouble(
  1. double? confidence
)

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,
  );
}