First, define a value outside of methods. String textValue=”Example value”; Then, set this value in your text widget. Text(textValue);
First, define a value outside of methods. String textValue=”Example value”; Then, set this value in your text widget. Text(textValue);