getUser method
Implementation
Future<User?> getUser() async {
final raw = await _storage.read(key: _userKey);
if (raw == null) return null;
try {
return User.fromJson(jsonDecode(raw) as Map<String, dynamic>);
} catch (_) {
return null;
}
}