I was trying to create a nested list or multidimensional array where a key may have multiple values and I want to access only one particular value of that key's values.
void main()
{
var family = {"Nabi": "Delowar", "Zerin" : ["Taheem", "Ayan"], "Nipa" : "Faizan"};
print(family['Zerin[0]']); // this doesn't work
print(family['Zerin']); // this prints ["Taheem", "Ayan"]
}
I want the output of Zerin[0] to be Taheem