allExceptForMixins method
Returns a set of all the metadata in this collection
(for propsMeta, this corresponds to all props mixins mixed into the props class),
except for the metadata corresponding to excludedMixinTypes.
See UiComponent2.consumedProps for usage examples.
Implementation
Iterable<U> allExceptForMixins(Set<Type> excludedMixinTypes) {
final filtered = Map.of(_metaByMixin);
for (final mixinType in excludedMixinTypes) {
assert(_metaByMixin.containsKey(mixinType),
'No meta found for $mixinType;'
'it likely isn\'t mixed in by the props/state class.');
filtered.remove(mixinType);
}
return filtered.values;
}