setLocationLineWidth method

Future<void> setLocationLineWidth(
  1. double lineWidth
)

Sets the width of the lines indicating the location of detected barcodes on the camera feed.

lineWidth: The width to set for the location line.

Example usage:

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

Implementation

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

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