copyUnconsumedDomProps method
Returns a copy of this component's props with keys found in consumedProps and non-DOM props omitted.
Should be used alongside forwardingClassNameBuilder.
Related copyUnconsumedProps
Deprecated. Use addUnconsumedDomProps within
modifyProps
(rather than addProps
) instead. Will be removed in the
4.0.0
release.
Implementation
@override
@Deprecated('4.0.0')
Map copyUnconsumedDomProps() {
var consumedPropKeys = consumedProps?.map((consumedProps) => consumedProps.keys) ?? const [];
return copyProps(onlyCopyDomProps: true, keySetsToOmit: consumedPropKeys);
}