Skip to content

Commit 548b667

Browse files
Merge pull request #439 from OrangeSofter/fix_assert
Assert fixed
2 parents 78d4cc7 + 1f1f0a9 commit 548b667

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/qr_scanner_overlay_shape.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QrScannerOverlayShape extends ShapeBorder {
2222
"Border can't be larger than ${min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2}",
2323
);
2424
assert(
25-
(cutOutSize != null && cutOutWidth == null && cutOutHeight == null) ||
25+
(cutOutWidth == null && cutOutHeight == null) ||
2626
(cutOutSize == null && cutOutWidth != null && cutOutHeight != null),
2727
'Use only cutOutWidth and cutOutHeight or only cutOutSize');
2828
}

0 commit comments

Comments
 (0)