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