Skip to content

Commit

Permalink
Replace $ character in field element.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Jan 18, 2019
1 parent 07cb737 commit 6710a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_data_generator/lib/src/auto_data_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class DataElementVisitor<T> extends SimpleElementVisitor<T> {
static DataClassProperty _parseFieldElement(FieldElement field) {
final name = field.name;
var type = field.type.displayName;
type = type.startsWith('\$') ? type.substring(1) : type;
type = type.replaceAll('\$', '');
final comment = field.documentationComment;
final isNullable = field.metadata.any((a) => a.toSource() == '@nullable');
var assignmentString = field.computeNode().toSource();
Expand Down

0 comments on commit 6710a60

Please sign in to comment.