diff --git a/lib/react_client/bridge.dart b/lib/react_client/bridge.dart index 474e2dbd..b5384191 100644 --- a/lib/react_client/bridge.dart +++ b/lib/react_client/bridge.dart @@ -80,7 +80,7 @@ class Component2BridgeImpl extends Component2Bridge { // Short-circuit to match the ReactJS 16 behavior of not re-rendering the component if newState is null. if (newState == null) return; - final dynamic firstArg = jsBackingMapOrJsCopy(newState); + final firstArg = jsBackingMapOrJsCopy(newState); if (callback == null) { component.jsThis.setState(firstArg); diff --git a/lib/react_client/component_factory.dart b/lib/react_client/component_factory.dart index 0aaa957e..809d092f 100644 --- a/lib/react_client/component_factory.dart +++ b/lib/react_client/component_factory.dart @@ -208,7 +208,6 @@ class ReactJsContextComponentFactoryProxy extends ReactJsComponentFactoryProxy { this.shouldConvertDomProps = true, this.isConsumer = false, this.isProvider = false, - // ignore: prefer_initializing_formals }) : type = jsClass, super(jsClass, shouldConvertDomProps: shouldConvertDomProps); @@ -266,7 +265,6 @@ class ReactJsComponentFactoryProxy extends ReactComponentFactoryProxy { this.shouldConvertDomProps = true, this.alwaysReturnChildrenAsList = false, List additionalRefPropKeys = const [], - // ignore: prefer_initializing_formals }) : type = jsClass, _additionalRefPropKeys = additionalRefPropKeys { if (jsClass == null) {