getLocationLineWidth property

Future<double> getLocationLineWidth

Retrieves the current width setting for the lines indicating the location of detected barcodes on the camera feed.

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

Example usage:

double lineWidth = await _barkoder.getLocationLineWidth();
print('Location line width: $lineWidth');

Implementation

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

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