Browse Source

assert cutOutSize (must be [0,1])

pull/58/head
Giulia Testa 2 years ago
parent
commit
56b18e4829
  1. 3
      lib/src/ui/dynamic_scanner_overlay.dart

3
lib/src/ui/dynamic_scanner_overlay.dart

@ -11,7 +11,8 @@ class DynamicScannerOverlay extends ScannerOverlay {
super.borderRadius, super.borderRadius,
super.borderLength, super.borderLength,
this.cutOutSize = 0.5 this.cutOutSize = 0.5
}); }) : assert(cutOutSize >= 0 && cutOutSize <= 1,
'The cut out size must be between 0 and 1');
@override @override
final double cutOutSize; final double cutOutSize;

Loading…
Cancel
Save