16 lines
399 B
Dart
16 lines
399 B
Dart
|
|
import 'package:cb_prestige_qr/core/storage/local_storage_service.dart';
|
||
|
|
|
||
|
|
class FingerprintRepository {
|
||
|
|
final LocalStorageService storage;
|
||
|
|
FingerprintRepository(this.storage);
|
||
|
|
|
||
|
|
static const key = "fingerprint_enabled";
|
||
|
|
|
||
|
|
Future<bool> load() async {
|
||
|
|
return await storage.getBool(key) ?? false;
|
||
|
|
}
|
||
|
|
|
||
|
|
Future<void> save(bool value) async {
|
||
|
|
await storage.setBool(key, value);
|
||
|
|
}
|
||
|
|
}
|