Skip to content

Commit

Permalink
Use literalNull.code
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Nov 1, 2023
1 parent e951288 commit 7fcb23f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/envied_generator/lib/src/generate_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Iterable<Field> generateFields(
? ''
: field.type.getDisplayString(withNullability: true))
..name = field.name
..assignment = Code('null'),
..assignment = literalNull.code,
),
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Iterable<Field> generateFieldsEncrypted(
? ''
: field.type.getDisplayString(withNullability: true))
..name = field.name
..assignment = Code('null'),
..assignment = literalNull.code,
),
];
}
Expand Down

0 comments on commit 7fcb23f

Please sign in to comment.