getLocationLineColorHex property

Future<String> getLocationLineColorHex

Retrieves the hexadecimal color code representing the line color used to indicate the location of detected barcodes.

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

Example usage:

String lineColor = await _barkoder.getLocationLineColorHex();
print('Location line color: $lineColor');

Implementation

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

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