getPrefUser static method
Implementation
static Future<UserModel?> getPrefUser() async {
SharedPreferences preferences = await SharedPreferences.getInstance();
String? userRaw = preferences.getString("appleUser");
if (userRaw != null) {
return UserModel.fromJson(json.decode(userRaw));
}
return null;
}