I have two textfields and i want to add them in list in object form like this
{"color":red,"size":L},{"color":blue,"size":S}
here is my code
i created this list
List<dynamic> _colorList = [];
and using it in a button like this
_colorList.add({"color": currentColor, "size": size.text});
and i need to remove the items from list too so unable to use Map<String, Object>
Error:
The argument type 'Map<String, Object>' can't be assigned to the parameter type 'String'.
please help how to do this.