Skip to content

Commit

Permalink
apply greg's diff to fix analyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
kealjones-wk committed Oct 2, 2024
1 parent dbf8c32 commit 0edb580
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions test/over_react/util/prop_conversion_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1527,29 +1527,17 @@ UiFactory<DartTestJsWrapperProps> 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<dynamic>?, List<Map?>?>(jsifyMapListProp, unjsifyMapListProp)
List<Map?>? listOfProps;

@Accessor(key: 'listOfProps')
List<dynamic>? _$raw$listOfProps;
@convertJsRefProp
dynamic inputRef;

List<Map?>? get listOfProps => unjsifyMapListProp(_$raw$listOfProps);
set listOfProps(List<Map?>? 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<String?>? get messageContext => unjsifyContextProp(_$raw$messageContext);
set messageContext(Context<String?>? value) => _$raw$messageContext = jsifyContextProp(value);
@ConvertProp<ReactContext?, Context<String?>?>(jsifyContextProp, unjsifyContextProp)
Context<String?>? messageContext;

dynamic /*ElementType*/ component;
dynamic /*ElementType*/ inputComponent;
Expand Down

0 comments on commit 0edb580

Please sign in to comment.