getCode11ChecksumType property

Future<Code11ChecksumType> getCode11ChecksumType

Retrieves the Code11 checksum type.

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

Example usage:

Code11ChecksumType checksumType = await _barkoder.getCode11ChecksumType;
print('Code11 checksum type: $checksumType');

Implementation

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

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