setMisshaped1DEnabled method

Future<void> setMisshaped1DEnabled(
  1. bool enabled
)

Sets whether the detection of misshaped 1D barcodes is enabled.

enabled: A boolean indicating whether to enable or disable misshaped 1D barcodes.

Example usage:

bool isEnabled = true;
_barkoder.setMisshaped1DEnabled(isEnabled);
print('Misshaped 1D barcodes enabled set to: $isEnabled');

Implementation

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

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