From b6978a5ba24220725024d480c0fb05c728070c8e Mon Sep 17 00:00:00 2001 From: Julian Steenbakker Date: Thu, 25 Mar 2021 10:42:02 +0100 Subject: [PATCH] refactor: removed unused _features and made _hasPermissions non nullable --- lib/src/qr_code_scanner.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/qr_code_scanner.dart b/lib/src/qr_code_scanner.dart index 0ec8e5f..b1da196 100644 --- a/lib/src/qr_code_scanner.dart +++ b/lib/src/qr_code_scanner.dart @@ -214,11 +214,8 @@ class QRViewController { Stream get scannedDataStream => _scanUpdateController.stream; - SystemFeatures? _features; - bool? _hasPermissions; - - SystemFeatures? get systemFeatures => _features; - bool? get hasPermissions => _hasPermissions; + bool _hasPermissions = false; + bool get hasPermissions => _hasPermissions; /// Starts the barcode scanner Future _startScan(GlobalKey key, QrScannerOverlayShape? overlay,