How to create widget with variable in C++

Hello! I used to add special Init() method to all C++ widgets and call it just after CreateWidget to pass all params… Only after that I add it to viewport, so it is always consistent when viewed…