onDetect property

void Function(BarcodeCapture)? onDetect
final

The threshold for updates to the scanWindow.

If the scanWindow would be updated, due to new layout constraints for the scanner, and the width or height of the new scan window have not changed by this threshold, then the scan window is not updated.

It is recommended to set this threshold if scan window updates cause performance issues.

Defaults to no threshold for scan window updates.

Implementation

final void Function(BarcodeCapture)? onDetect;