skip to Main Content

Sort Map in Dart/Flutter

I have a Map<String, dynamic> i get from a json response as below. map = { "status": "Success", "payments": [ { "id": 99, "groupID": 19, "paymentDueDate": "2023-05-12", "paymentDate": null, "userID": 13, "amount": 500, "forDuration": "May", "proofOfPayment": null, "paymentMode": null, "paymentID":…

VIEW QUESTION

Flutter – Why setState() method not working despite making related variable nullable

class _InputPageState extends State<InputPage>{ Gender? selectedGender; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: mainColor, appBar: AppBar( title: Text( 'BMI Calculator' ), backgroundColor: Colors.transparent, elevation: 0, centerTitle: true, ), body: Column( children: <Widget>[ Expanded( child: Row( children: [ Expanded( child:…

VIEW QUESTION
Back To Top
Search