Skip to content

Commit

Permalink
fix(generator): fix PartValueFile value not nullable if arg is (lejar…
Browse files Browse the repository at this point in the history
  • Loading branch information
rIIh committed Sep 5, 2021
1 parent 8be965b commit 2ab6a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class ChopperGenerator extends GeneratorForAnnotation<chopper.ChopperApi> {
];

list.add(
refer('PartValueFile<${p.type.getDisplayString(withNullability: false)}>')
refer('PartValueFile<${p.type.getDisplayString(withNullability: p.type.isNullable)}>')
.newInstance(params),
);
});
Expand Down

0 comments on commit 2ab6a78

Please sign in to comment.