From fe4a11bbb88924bfc67936cdb7adc783d00f1d3f Mon Sep 17 00:00:00 2001 From: Tihomirov Date: Tue, 5 Oct 2021 13:25:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1ode=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/qr_scanner_overlay_shape.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/src/qr_scanner_overlay_shape.dart b/lib/src/qr_scanner_overlay_shape.dart index a0a4159..1d233f1 100644 --- a/lib/src/qr_scanner_overlay_shape.dart +++ b/lib/src/qr_scanner_overlay_shape.dart @@ -14,15 +14,17 @@ class QrScannerOverlayShape extends ShapeBorder { double? cutOutWidth, double? cutOutHeight, this.cutOutBottomOffset = 0, - }): cutOutWidth = cutOutWidth ?? cutOutSize ?? 250, - cutOutHeight = cutOutHeight ?? cutOutSize ?? 250 { + }) : cutOutWidth = cutOutWidth ?? cutOutSize ?? 250, + cutOutHeight = cutOutHeight ?? cutOutSize ?? 250 { assert( - borderLength <= min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2, + borderLength <= + min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2, "Border can't be larger than ${min(this.cutOutWidth, this.cutOutHeight) / 2 + borderWidth * 2}", ); - assert((cutOutSize != null && cutOutWidth == null && cutOutHeight == null) || (cutOutSize == null && cutOutWidth != null && cutOutHeight != null), - 'Use only cutOutWidth and cutOutHeight or only cutOutSize' - ); + assert( + (cutOutSize != null && cutOutWidth == null && cutOutHeight == null) || + (cutOutSize == null && cutOutWidth != null && cutOutHeight != null), + 'Use only cutOutWidth and cutOutHeight or only cutOutSize'); } final Color borderColor;