In Dart language how to get MAP keys by values?
I have a Map like;
{ \"01\": \"USD\", \"17\": \"GBP\", \"33\": \"EUR\" }
And I n
You can do the following :
var mapper = { '01' : 'USD', '17' : 'GBP' } for(var val in mapper.keys){ switch(mapper[val]){ case 'USD' : { print('key for ${mapper[val]} is : ' '${val}'); } break; case 'GBP' : { print('key for ${mapper[val]} is : ' '${val}'); } } }