configure method
void
configure({})
Configures the shreshold values of which will be used while verfying Parameters: -
- thresholds: - List of M7DetectionThreshold objects.
- contourColor - Color of the points that are plotted on the face while detecting.
Implementation
void configure({
required List<M7DetectionThreshold> thresholds,
Color lineColor = const Color(0xffab48e0),
Color dotColor = const Color(0xffab48e0),
double lineWidth = 1.6,
double dotSize = 2.0,
bool displayLines = true,
bool displayDots = true,
List<double>? dashValues,
}) {
assert(
thresholds.isNotEmpty,
"Threshold configuration cannot be empty",
);
assert(
_dashValues == null || _dashValues!.length == 2,
"Dash values must be of length 2",
);
_thresholds.clear();
_thresholds.addAll(thresholds);
_contourLineColor = lineColor;
_contourDotColor = dotColor;
_contourDotRadius = dotSize;
_contourLineWidth = lineWidth;
_displayLines = displayLines;
_displayDots = displayDots;
_dashValues = dashValues;
}