I have an array that contains a list of String
var array = [
"table",
"laptop",
"kitchen",
];
and I have a random number:
int i= Random().nextInt(2);
I want to show the random selected item in a text widget something like:
Text("your randomly selected item ist $array[i] ")
but that dosn't work.
How can I do that?