79289734

Date: 2024-12-18 01:21:48
Score: 0.5
Natty:
Report link

If you put checkAddons inside the build method when you use setState(), the method build is recalled, then the checkAddons will be reset to the default value of [], which will make this error. The solution is to put checkAddons outside the build method

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Đình Nhật