setRoiLineColor method
- String hexColor
Sets the width of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed.
hexColor
: The color to set for the ROI line in hexadecimal format.
Example usage:
String lineColor = '#00FF00'; // Green color
_barkoder.setRoiLineColor(lineColor);
print('ROI line color set to: $lineColor');
Implementation
Future<void> setRoiLineColor(String hexColor) {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return _methodChannel.invokeMethod('setRoiLineColor', hexColor);
}