Skip to content

Commit

Permalink
Fix Flutter Compute Generator to allow Multiple Functions for Generic…
Browse files Browse the repository at this point in the history
… Objects (#635)

Co-authored-by: Marius Atasiei <[email protected]>
  • Loading branch information
MariusAtasiei and Marius Atasiei authored Nov 24, 2023
1 parent 333dff8 commit c21ba9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ You should create a new class to encapsulate the response.
break;
case retrofit.Parser.FlutterCompute:
mapperCode = refer(
'await compute(deserialize${_displayString(returnType)}, $_resultVar.data!)',
'await compute(deserialize${_displayString(returnType).replaceFirst('<', '').replaceFirst('>', '')}, $_resultVar.data!)',
);
break;
}
Expand Down

0 comments on commit c21ba9f

Please sign in to comment.