fix: address analysis issues - remove unused import, fix deprecated APIs, update test

This commit is contained in:
fiatcode 2026-04-30 11:40:56 +07:00
parent 85249acc84
commit 07bae466cf
No known key found for this signature in database
32 changed files with 1550 additions and 75 deletions

View file

@ -21,7 +21,9 @@ class Preferences {
static SharedPreferences get instance {
if (_instance == null) {
throw Exception('Preferences not initialized. Call Preferences.init() first.');
throw Exception(
'Preferences not initialized. Call Preferences.init() first.',
);
}
return _instance!;
}
@ -100,4 +102,4 @@ class Preferences {
instance.setString(keyDeviceId, deviceId);
return deviceId;
}
}
}