So, I am in my home_screen dart file and I have a Text in it where I want it to display the live value from another class's properties value. When I update the class's properties value from another script I want my home_screen Text to update to that new value. My class in a separate file is the following (simplified) :
class MyClass {
static int myNumber = 10;
}
I want the following Text to update with the value of myNumber in another file:
Text('iWantThisToDisplayLiveMyNumber'),
When I change the value of myNumber from yet another random script how do I get the Text to update in live time to always be myNumber?