forwardingClassNameBuilder method

  1. @override
ClassNameBuilder forwardingClassNameBuilder()
override

Returns a ClassNameBuilder with className and blacklist values added from CssClassPropsMixin.className and CssClassPropsMixin.classNameBlacklist, if they are specified.

This method should be used as the basis for the classNames of components receiving forwarded props.

Should be used alongside copyUnconsumedProps or copyUnconsumedDomProps.

Implementation

@override
ClassNameBuilder forwardingClassNameBuilder() {
  return ClassNameBuilder.fromProps(this.props);
}