setUpcEanDeblurEnabled method

Future<void> setUpcEanDeblurEnabled(
  1. bool enabled
)

Sets whether the deblurring feature for UPC/EAN barcodes is enabled.

enabled: A boolean indicating whether to enable or disable UPC/EAN deblur.

Example usage:

bool isEnabled = true;
await _barkoder.setUpcEanDeblurEnabled(isEnabled);
print('UPC/EAN deblur enabled set to: $isEnabled');

Implementation

Future<void> setUpcEanDeblurEnabled(bool enabled) {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return _methodChannel.invokeMethod('setUpcEanDeblurEnabled', enabled);
}