Skip to content

Commit

Permalink
Merge pull request #439 from OrangeSofter/fix_assert
Browse files Browse the repository at this point in the history
Assert fixed
  • Loading branch information
juliansteenbakker authored Nov 1, 2021
2 parents 78d4cc7 + 1f1f0a9 commit 548b667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/qr_scanner_overlay_shape.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 548b667

Please sign in to comment.