setCode39ChecksumType method
- 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);
}