title: flutter radio button list tiles not changing
body: <p>What I'm trying to do is to build a list of radio buttons tiles that its titles come from API response, and of types string and it worked, the problem is that when I change the selection of the buttons nothing happens and the UI still with the initial selection, the value of the selection itself don't change.</p>
  <pre><code>_getTypes() =&gt; StatefulBuilder(
  builder: (BuildContext context, StateSetter radioButtonsState) {
    _type = _types.isNotEmpty? _types[0] : '';
      List&lt;Widget&gt; typeWidgets = [];
      _types.forEach((element) {
        var type = RadioListTile&lt;String&gt;(
          title: Text(element),
          value: _type,
          groupValue: element,
          onChanged: (value){
            _type = value.toString();
            print('user type: $_type');
            radioButtonsState(() {
              _type = value.toString();
              print('user type: $_type');
            });
          },
        );
        typeWidgets.add(type);
        if(element == 'CompanyAdmin'){
          var speciality = AnimatedSwitcher(
            duration: const Duration(milliseconds: 200),
            child: _type == 'CompanyAdmin'
                ? _specialitiesDropDownList(): const SizedBox(),
            transitionBuilder: (child, animation) {
              return SlideTransition(
                position: Tween&lt;Offset&gt;(
                  begin: const Offset(0.0, 0.2),
                  end: Offset.zero,
                ).animate(animation),
                child: child,
              );
            },
          );
          typeWidgets.add(speciality);
        }
        if(element == 'Employee'){
          var speciality = AnimatedSwitcher(
            duration: const Duration(milliseconds: 200),
            child: _type == 'Employee'
                ? _specialitiesDropDownList(): const SizedBox(),
            transitionBuilder: (child, animation) {
              return SlideTransition(
                position: Tween&lt;Offset&gt;(
                  begin: const Offset(0.0, 0.2),
                  end: Offset.zero,
                ).animate(animation),
                child: child,
              );
            },
          );
          typeWidgets.add(speciality);
        }
      });
      return Column(
        children: typeWidgets,
      );
  },
  </code></pre>
  <p>);</p>