getUser method
Implementation
@protected
User getUser() {
final User storedUser = User.fromJson(
jsonDecode(user) as Map<String, dynamic>,
);
final User currentUser = ProductQuery.getWriteUser();
if (storedUser.userId == currentUser.userId) {
// with a latest password.
return currentUser;
}
return storedUser;
}