setCode11ChecksumType method
- Code11ChecksumType checksumType
Sets the Code11 checksum type.
checksumType
: The Code11ChecksumType to set.
Example usage:
Code11ChecksumType checksumType = Code11ChecksumType.single;
await _barkoder.setCode11ChecksumType(checksumType);
print('Code11 checksum type set to: $checksumType');
Implementation
Future<void> setCode11ChecksumType(Code11ChecksumType checksumType) {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return _methodChannel.invokeMethod(
'setCode11ChecksumType', checksumType.index);
}