Issue
RadioListTile(
value: 1,
groupValue: selectedRadio,
title: Text("Doctor" , style: TextStyle(fontSize: 19.0)),
activeColor: Colors.green,
onChanged: (val) {
setSelectedRadio(val);
//print(selectedRadio);
},
),
on the val variable i am getting this error of The argument type 'Object?' can't be assigned to the parameter type 'int'.
Solution
Try changing it to
setSelectedRadio(val as int);
Answered By - Ivo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.