title: Fixed List is not updating with for loop - Flutter
body: <p>I've a fixed list reservedGuest. After checking the condition in for loop I want to update the seats if the membership date has expired. The list is not updating. The code is as follows. PS. The List is filled through API on init().</p>
  <pre><code>class MyClubController extends GetxController {
   
      List goldLane = List.filled(3, null, growable: false);
  
    
   
      void _alterLanesOnContractEnds() {
      for (var i in goldLane) {
        print(&quot;\n\n I: $i&quot;);
        if (i == null ||
            DateTime.parse(i['contractEnds']).isBefore(
              DateTime.now(),
            )) {
          i = null;
          print('Can be removed');
        } else {
          print('Cannot be removed');
        }
      }
      update();
    }
    
  }
  </code></pre>