init static method
Initializes the SharedPreferences instance for local data storage.
Implementation
static Future init() async {
_prefs = await SharedPreferences.getInstance();
if (_prefs?.getString(_keyTheme) == null) {
await setTheme('default');
}
if (_prefs?.getDouble(_keyTitleFont) == null) {
await setTitleFont(40);
}
if (_prefs?.getString(_keyAccentTheme) == null) {
await setAccentTheme('556EA5');
}
}