Skip to content

Commit

Permalink
Fix invalid_override_different_default_values_positional warning w/ r…
Browse files Browse the repository at this point in the history
…eact 7.0.0

The existing lack of a default was also bad behavior, since passing
`null` as children would break.
  • Loading branch information
greglittlefield-wf committed Oct 9, 2023
1 parent 1844351 commit ab42a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/over_react_redux/over_react_redux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class ReactJsReactReduxComponentFactoryProxy extends ReactJsContextComponentFact
}) : super(jsClass, isProvider: isProvider, isConsumer: isConsumer, shouldConvertDomProps: shouldConvertDomProps);

@override
ReactElement build(Map props, [List childrenArgs]) {
ReactElement build(Map props, [List childrenArgs = const []]) {
return super.build(_generateReduxJsProps(props), childrenArgs);
}

Expand Down

0 comments on commit ab42a4d

Please sign in to comment.