create static method
Initializes and returns a new instance of SharedPreferencesAsync.
This method must be called before accessing sharedPrefs.
Implementation
static Future<SharedPreferencesAsync> create() async {
try {
_sharedPrefs = SharedPreferencesAsync();
} catch (e) {
rethrow;
}
return _sharedPrefs!;
}