getMsiChecksumType property

Future<MsiChecksumType> getMsiChecksumType

Retrieves the MSI checksum type.

Returns a Future that completes with a MsiChecksumType enum value representing the checksum type used for MSI barcodes.

Example usage:

MsiChecksumType checksumType = await _barkoder.getMsiChecksumType;
print('MSI checksum type: $checksumType');

Implementation

Future<MsiChecksumType> get getMsiChecksumType async {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return await _methodChannel
      .invokeMethod('getMsiChecksumType')
      .then((index) {
    return MsiChecksumType.values[index];
  });
}