getMulticodeCachingDuration property

Future<int> getMulticodeCachingDuration

Retrieves the caching duration (in milliseconds) for multi-code results.

Returns a Future that completes with an integer representing the multicode caching duration in milliseconds.

Example usage:

int cachingDuration = await _barkoder.getMulticodeCachingDuration;
print('Multicode caching duration: $cachingDuration');

Implementation

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

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