In Dart language how to get MAP keys by values?
I have a Map like;
{ "01": "USD", "17": "GBP", "33": "EUR" }
And I need to use values to get keys. How do I do that?
var usdKey = curr.keys.firstWhere( (k) => curr[k] == 'USD', orElse: () => null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With