cb_prestige_qr/lib/features/auth/data/fingerprint_repository.dart

16 lines
399 B
Dart
Raw Normal View History

2026-04-22 07:37:53 +00:00
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);
}
}