setBarcodeThumbnailOnResultEnabled method
- bool enabled
Sets whether to enable barcode thumbnail on result.
enabled
: A boolean indicating whether to enable barcode thumbnail on result.
Example usage:
bool thumbnailEnabled = true;
await _barkoder.setBarcodeThumbnailOnResultEnabled(thumbnailEnabled);
print('Barcode thumbnail on result enabled: $thumbnailEnabled');
Implementation
Future<void> setBarcodeThumbnailOnResultEnabled(bool enabled) {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return _methodChannel.invokeMethod(
'setBarcodeThumbnailOnResultEnabled', enabled);
}