static bool containsKey(Map map, Object key) { for (final k in map.keys) { if (k == key) { return true; } } return false; }