This commit is contained in:
J. A. Messias 2024-10-22 16:29:39 -03:00
parent f36fca0bba
commit ffd9e65aa4
1 changed files with 4 additions and 8 deletions

View File

@ -237,32 +237,28 @@ class StorageUtil {
String get deviceDescription => _deviceDescription ?? '';
set deviceDescription(String value) {
_deviceDescription = value;
_secureStorage.set(
'fre_deviceDescription', value, (v) => _deviceDescription = v);
_secureStorage.set('fre_deviceDescription', value, (v) => _deviceDescription = v);
}
BuildContext? _context;
BuildContext? get context => _context;
set context(BuildContext? value) {
_context = value;
_secureStorage.set(
'fre_context', value.toString(), (v) => _context = value);
_secureStorage.set('fre_context', value.toString(), (v) => _context = value);
}
bool _haveLocal = false;
bool get haveLocal => _haveLocal;
set haveLocal(bool value) {
_haveLocal = value;
_secureStorage.set(
'fre_have_local', value ?? false, (v) => _haveLocal = value);
_secureStorage.set('fre_have_local', value ?? false, (v) => _haveLocal = value);
}
String? _fingerprintPass;
String get fingerprintPass => _fingerprintPass ?? '';
set fingerprintPass(String value) {
_fingerprintPass = value;
_secureStorage.set(
'fre_fingerprintPass', value, (v) => _fingerprintPass = v);
_secureStorage.set('fre_fingerprintPass', value, (v) => _fingerprintPass = v);
}
String? _accessPass;