Map<String, String> removeStyleProperties(List<String> names) { var removed = removeStyleEntries(names); return Map.fromEntries( removed.map((e) => MapEntry(e.name, e.valueAsString))); }