From 1f1f0a9cd80d1829ae6a0bc5ea95c20551727b04 Mon Sep 17 00:00:00 2001 From: Tihomirov Date: Tue, 12 Oct 2021 12:51:18 +0300 Subject: [PATCH] Assert fixed --- lib/src/qr_scanner_overlay_shape.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/qr_scanner_overlay_shape.dart b/lib/src/qr_scanner_overlay_shape.dart index 0d41090..43cb8b4 100644 --- a/lib/src/qr_scanner_overlay_shape.dart +++ b/lib/src/qr_scanner_overlay_shape.dart @@ -22,7 +22,7 @@ class QrScannerOverlayShape extends ShapeBorder { "Border can't be larger than ${min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2}", ); assert( - (cutOutSize != null && cutOutWidth == null && cutOutHeight == null) || + (cutOutWidth == null && cutOutHeight == null) || (cutOutSize == null && cutOutWidth != null && cutOutHeight != null), 'Use only cutOutWidth and cutOutHeight or only cutOutSize'); }