forMixin method
Returns the metadata for only the prop fields declared in mixinType
.
See UiComponent2.consumedProps
for usage examples.
Implementation
U forMixin(Type mixinType) {
final meta = _metaByMixin[mixinType];
assert(meta != null,
'No meta found for $mixinType;'
'it likely isn\'t mixed in by the props/state class.');
return meta ?? _emptyMeta;
}