setMulticodeCachingEnabled method
- bool enabled
Sets whether multi-code caching is enabled.
enabled
: A boolean indicating whether to enable multicode caching.
Example usage:
bool multicodeCachingEnabled = true;
await _barkoder.setMulticodeCachingEnabled(multicodeCachingEnabled);
print('Multicode caching enabled: $multicodeCachingEnabled');
Implementation
Future<void> setMulticodeCachingEnabled(bool enabled) {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return _methodChannel.invokeMethod('setMulticodeCachingEnabled', enabled);
}