0
votes

I am trying to access and use values that are In my snapshot.data[index]

What I am printing using print(snapshot.data[index]) :

I/flutter (11316): Code : LE-0000000002
I/flutter (11316): Description : test_01
I/flutter (11316): Organisation Unit : 01_01_04_01_SA - Shah Alam
I/flutter (11316): Date Reported : 18/09/2020
I/flutter (11316): Status : LE110 - Pending Approval
I/flutter (11316): RunHyperlink : {classid: 25510, id: 2, mad_key: 32835}

I want to use the "id : value" that is being displayed. I understand that need to create a map to do so but am unsure of how to go about it. Can anyone help me create this map?

The reason why I need to access and use the "id : value" is that I need to pass whatever value is in the "id" to a queryparameter.

Thanks!