flutter problem : how to remove brackets of list data
Solution 1:
You are letting dart apply the toString
method on an array, resulting in showing it as a raw JSON string.
You just need to somehow iterate on your entries or join them:
'${healthHeroesListData[index]['areaOfMentoring'].join(', ')}'
Solution 2:
You have many ways, the most simple is:
healthHeroesListData[index]['areaOfMentoring'].join(', ') // with comas
healthHeroesListData[index]['areaOfMentoring'].join(' ') // no comas