getRoiLineColorHex property

Future<String> getRoiLineColorHex

Retrieves the hexadecimal color code representing the line color of the Region of Interest (ROI) on the camera preview.

Returns a Future that completes with the color of the ROI line in hexadecimal format.

Example usage:

String lineColor = await _barkoder.getRoiLineColorHex();
print('ROI line color: $lineColor');

Implementation

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

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