Skip to content

Commit

Permalink
fix(generator): fix PartValueFile value not nullable if arg is (#288) (
Browse files Browse the repository at this point in the history
  • Loading branch information
rIIh authored Sep 18, 2021
1 parent bcb0304 commit 4e4607e
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 4e4607e

Please sign in to comment.