setCode39ChecksumType method

Future<void> setCode39ChecksumType(
  1. Code39ChecksumType checksumType
)

Sets the Code39 checksum type.

checksumType: The Code39ChecksumType to set.

Example usage:

Code39ChecksumType checksumType = Code39ChecksumType.enabled;
_barkoder.setCode39ChecksumType(checksumType);
print('Code39 checksum type set to: $checksumType');

Implementation

Future<void> setCode39ChecksumType(Code39ChecksumType checksumType) {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return _methodChannel.invokeMethod(
      'setCode39ChecksumType', checksumType.index);
}