unusedProperties property

Map<String, Set<String>> get unusedProperties

Properties the agent never filled, for components it did compose.

A component it never composed is reported whole rather than property by property, which would say the same thing many times over.

Implementation

Map<String, Set<String>> get unusedProperties => <String, Set<String>>{
  for (final entry in catalogProperties.entries)
    if (componentUses.containsKey(entry.key))
      if (entry.value
          .difference(propertyUses[entry.key] ?? const <String>{})
          .isNotEmpty)
        entry.key: entry.value.difference(
          propertyUses[entry.key] ?? const <String>{},
        ),
};