getEncodingCharacterSet property

Future<String> getEncodingCharacterSet

Retrieves the character set used for encoding barcode data.

Returns a Future that completes with a String representing the encoding character set.

Example usage:

String characterSet = await _barkoder.getEncodingCharacterSet;
print('Encoding character set: $characterSet');

Implementation

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

  return await _methodChannel.invokeMethod('getEncodingCharacterSet');
}