getMulticodeCachingEnabled property

Future<bool> getMulticodeCachingEnabled

Retrieves whether multi-code caching is enabled.

Returns a Future that completes with a boolean indicating whether multicode caching is enabled.

Example usage:

bool multicodeCachingEnabled = await _barkoder.getMulticodeCachingEnabled;
print('Multicode caching enabled: $multicodeCachingEnabled');

Implementation

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

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