setMsiChecksumType method

Future<void> setMsiChecksumType(
  1. MsiChecksumType checksumType
)

Sets the MSI checksum type.

checksumType: The MsiChecksumType to set.

Example usage:

MsiChecksumType checksumType = MsiChecksumType.mod10;
await _barkoder.setMsiChecksumType(checksumType);
print('MSI checksum type set to: $checksumType');

Implementation

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

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