79753566

Date: 2025-09-02 13:50:42
Score: 2.5
Natty:
Report link

Thank you folks for your answers. But, I finally found a solution :D The problem was in how Maps work. "results.first" is read-only, so I have to make copy of it to make it mutable.

I did this: Map<String, dynamic> userMapMutable = Map.of( results.first);
This works now when I want to write true/false in userMapMutable['isAdmin'].
Hope this helps someone in future :D

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): Hope this helps
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: DayGZax