fix: address analysis issues - remove unused import, fix deprecated APIs, update test
This commit is contained in:
parent
85249acc84
commit
07bae466cf
32 changed files with 1550 additions and 75 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue