isBarcodeThumbnailOnResultEnabled property

Future<bool> isBarcodeThumbnailOnResultEnabled

Checks if the barcode thumbnail on result is enabled.

Returns a Future that completes with a boolean indicating whether barcode thumbnail on result is enabled.

Example usage:

bool thumbnailEnabled = await _barkoder.isBarcodeThumbnailOnResultEnabled;
print('Barcode thumbnail on result enabled: $thumbnailEnabled');

Implementation

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

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