diff --git a/lib/src/ui/dynamic_scanner_overlay.dart b/lib/src/ui/dynamic_scanner_overlay.dart index f3cb117..13db456 100644 --- a/lib/src/ui/dynamic_scanner_overlay.dart +++ b/lib/src/ui/dynamic_scanner_overlay.dart @@ -11,7 +11,8 @@ class DynamicScannerOverlay extends ScannerOverlay { super.borderRadius, super.borderLength, this.cutOutSize = 0.5 - }); + }) : assert(cutOutSize >= 0 && cutOutSize <= 1, + 'The cut out size must be between 0 and 1'); @override final double cutOutSize;