getCachedUser method
Get cached user data
Implementation
Future<UserData?> getCachedUser() async {
final prefs = await _prefsInstance;
final userJson = prefs.getString(_userKey);
if (userJson == null) return null;
try {
final userMap = Map<String, dynamic>.from(
// In a real implementation, you'd parse JSON properly
{},
);
return UserData.fromJson(userMap);
} on Exception {
return null;
}
}