configure method

void configure({
  1. required List<M7DetectionThreshold> thresholds,
  2. Color lineColor = const Color(0xffab48e0),
  3. Color dotColor = const Color(0xffab48e0),
  4. double lineWidth = 1.6,
  5. double dotSize = 2.0,
  6. bool displayLines = true,
  7. bool displayDots = true,
  8. List<double>? dashValues,
})

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