getThresholdBetweenDuplicatesScans property
Retrieves the threshold between duplicate scans.
Returns a Future that completes with an integer representing the threshold between duplicate scans.
Example usage:
int threshold = await _barkoder.getThresholdBetweenDuplicatesScans;
print('Threshold between duplicate scans: $threshold milliseconds');
Implementation
Future<int> get getThresholdBetweenDuplicatesScans async {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return await _methodChannel
.invokeMethod('getThresholdBetweenDuplicatesScans');
}