RadioListTile onchange value is object? type

Issue I am trying to make multiple choice questions using RadioListTile. RadioListTile( value: 1, groupValue: 1, onChanged: (val) { print("Value"); print(val.runtimeType); setSelectedRadio(val); }, title: Text(snapshot.data!.data()["questions"]["question $i"]["option 1"]), ); The error I am getting is The argument type ‘Object?’ can’t be

Continue reading