getCode39ChecksumType property

Future<Code39ChecksumType> getCode39ChecksumType

Retrieves the checksum type for Code 39 barcodes.

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

Example usage:

Code39ChecksumType checksumType = await _barkoder.getCode39ChecksumType;
print('Code39 checksum type: $checksumType');

Implementation

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

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