getDuplicatesDelayMs property

Future<int> getDuplicatesDelayMs

Retrieves the delay in milliseconds for considering duplicate barcodes during scanning.

Returns a Future that completes with an integer representing the delay in milliseconds for detecting duplicate scans.

Example usage:

int delayMs = await _barkoder.getDuplicatesDelayMs;
print('Duplicates detection delay: $delayMs milliseconds');

Implementation

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

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