getRoiLineWidth property

Future<double> getRoiLineWidth

Retrieves the current width setting for the lines outlining the Region of Interest (ROI) on the camera preview.

Returns a Future that completes with the width of the ROI line.

Example usage:

double lineWidth = await _barkoder.getRoiLineWidth();
print('ROI line width: $lineWidth');

Implementation

Future<double> get getRoiLineWidth async {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return await _methodChannel.invokeMethod('getRoiLineWidth');
}