Map makeMap(List<CType> components) { final x = {}; for (var e in components) { var i = components.indexOf(e); (x['_${i}_'] = e); } return x; }