Преглед на файлове

refactor: removed unused _features and made _hasPermissions non nullable

flutter-beta
Julian Steenbakker преди 5 години
родител
ревизия
b6978a5ba2
No known key found for this signature in database GPG ключ ID: 16E437C7A3D94250
променени са 1 файла, в които са добавени 2 реда и са изтрити 5 реда
  1. +2
    -5
      lib/src/qr_code_scanner.dart

+ 2
- 5
lib/src/qr_code_scanner.dart Целия файл

@@ -214,11 +214,8 @@ class QRViewController {

Stream<Barcode> 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<void> _startScan(GlobalKey key, QrScannerOverlayShape? overlay,


Зареждане…
Отказ
Запис