Check out example codes for "dart string variable stack". It will help you in understanding the concepts better.

Code Example 1

window["text" + pageNumber] = 123;
alert(window["text" + pageNumber]);

Code Example 2

window["text" + pageNumber] = 123;

Learn ReactJs, React Native from akashmittal.com