void add(String type, String dependency) { _dependencies.putIfAbsent(type, () => {}).add(dependency); }