For example,
Lets say I have a map:
Map<string, dynamic> myMap = {'zero': 0, 'one': 1, 'two': 2};
How can I display these values in a text widget like what is depicted below:
Map key-value pairs:
zero: 0
one: 1
two: 2
For example,
Lets say I have a map:
Map<string, dynamic> myMap = {'zero': 0, 'one': 1, 'two': 2};
How can I display these values in a text widget like what is depicted below:
Map key-value pairs:
zero: 0
one: 1
two: 2
2
Answers
Try the following :
Try below code