From 0edb5800795894114ff2b1b21287d8bef03aad72 Mon Sep 17 00:00:00 2001 From: Keal Jones Date: Wed, 2 Oct 2024 09:21:23 -0700 Subject: [PATCH] apply greg's diff to fix analyzer error --- .../over_react/util/prop_conversion_test.dart | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/test/over_react/util/prop_conversion_test.dart b/test/over_react/util/prop_conversion_test.dart index 4cdf927f9..13ca46d72 100644 --- a/test/over_react/util/prop_conversion_test.dart +++ b/test/over_react/util/prop_conversion_test.dart @@ -1527,29 +1527,17 @@ UiFactory DartTestJsWrapper = uiForwardRef( @Props(keyNamespace: '') mixin TestJsProps on UiProps { - @Accessor(key: 'buttonProps') - JsMap? _$raw$buttonProps; + @convertJsMapProp + Map? buttonProps; - Map? get buttonProps => unjsifyMapProp(_$raw$buttonProps); - set buttonProps(Map? value) => _$raw$buttonProps = jsifyMapProp(value); + @ConvertProp?, List?>(jsifyMapListProp, unjsifyMapListProp) + List? listOfProps; - @Accessor(key: 'listOfProps') - List? _$raw$listOfProps; + @convertJsRefProp + dynamic inputRef; - List? get listOfProps => unjsifyMapListProp(_$raw$listOfProps); - set listOfProps(List? value) => _$raw$listOfProps = jsifyMapListProp(value); - - @Accessor(key: 'inputRef') - dynamic _$raw$inputRef; - - dynamic get inputRef => unjsifyRefProp(_$raw$inputRef); - set inputRef(dynamic value) => _$raw$inputRef = jsifyRefProp(value); - - @Accessor(key: 'messageContext') - ReactContext? _$raw$messageContext; - - Context? get messageContext => unjsifyContextProp(_$raw$messageContext); - set messageContext(Context? value) => _$raw$messageContext = jsifyContextProp(value); + @ConvertProp?>(jsifyContextProp, unjsifyContextProp) + Context? messageContext; dynamic /*ElementType*/ component; dynamic /*ElementType*/ inputComponent;