setRoiLineWidth method

Future<void> setRoiLineWidth(
  1. double lineWidth
)

Sets the width of the region of interest (ROI) line.

lineWidth: The width to set for the ROI line.

Example usage:

double lineWidth = 2.0;
_barkoder.setRoiLineWidth(lineWidth);
print('ROI line width set to: $lineWidth');

Implementation

Future<void> setRoiLineWidth(double lineWidth) {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return _methodChannel.invokeMethod('setRoiLineWidth', lineWidth);
}