The Map interface doesn\'t seem to provide access to the entries as an iterable, nor does it expose a where method to filter entries. Am I missing something? Is there a simple w
Since Dart 2.0 Maps have an entries getter that returns an Iterable> so you can do:
Iterable>
MapEntry theOne = map.entries.firstWhere((entry) { return entry.key.startsWith('foo'); }, orElse: () => MapEntry(null, null));