init static method
Initialize SharedPreferences (call this once before use).
Implementation
static Future<void> init() async {
_prefs = await SharedPreferences.getInstance();
}
Initialize SharedPreferences (call this once before use).
static Future<void> init() async {
_prefs = await SharedPreferences.getInstance();
}