configure method
void
configure({
- required List<
M7DetectionThreshold> thresholds, - Color contourColor = const Color(0xffab48e0),
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 contourColor = const Color(0xffab48e0),
}) {
assert(
thresholds.isNotEmpty,
"Threshold configuration cannot be empty",
);
_thresholds.clear();
_thresholds.addAll(thresholds);
_contourDetectionColor = contourColor;
}