I have a map of type Map<DateTime, List<dynamic>>. Its instances are like this:
2020-11-26: [Test1, Test2, Test3, Test4]
2020-11-22: [Test331, Test55, Test1, Test55]
How could I update the value of any of these keys in one position of the list values? This is what I've tried:
_myMap.update(_day, (value) => _mapFieldController.text.toString());
But currently it is giving the following error:
error: The return type 'String' isn't a 'List', as required by the closure's context
How could I perform it, and how could I set the position of the list that I want update? In this case I only want to update the value touched by the user.