over_react_forward_only_dom_props_to_dom_builders

Severity: AnalysisErrorSeverity.WARNING

Maturity: stable

Since 1.0.0

View the Project on GitHub workiva/over_react

PREFER to use addUnconsumedDomProps instead of addUnconsumedProps on Dom builders.

GOOD:

@override
render() {
  return (Dom.div()
    ..modifyProps(addUnconsumedDomProps)
    ..id = 'foo'
  )(props.children);
}

BAD:

@override
render() {
  return (Dom.div()
    ..modifyProps(addUnconsumedProps)
    ..id = 'foo'
  )(props.children);
}