title: How to get Radio button value in Flutter
body: <p>I am using below code for the gender selection in a flutter application. In this, this is working fine, but I am not able to retrieve the value of gender in Text format. How should I do that?</p>
  
  <pre><code>final gender = Padding(
        padding: EdgeInsets.only(top: 0.0),
        child: Row(
          children: &lt;Widget&gt;[
            Radio(
              value: 0,
              groupValue: _genderRadioBtnVal,
              onChanged: _handleGenderChange,
            ),
            Text("Male"),
            Radio(
              value: 1,
              groupValue: _genderRadioBtnVal,
              onChanged: _handleGenderChange,
            ),
            Text("Female"),
            Radio(
              value: 2,
              groupValue: _genderRadioBtnVal,
              onChanged: _handleGenderChange,
            ),
            Text("Other"),
          ],
        ),
      );
  
  void _handleGenderChange(int value) {
      setState(() {
        _genderRadioBtnVal = value;
      });
    }
  </code></pre>