Skip to content

Commit

Permalink
Change toString function to not use $ characters, since they are stri…
Browse files Browse the repository at this point in the history
…pped.
  • Loading branch information
pauldemarco committed Jan 31, 2019
1 parent 6d7ffa6 commit 885a7f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto_data_generator/lib/src/file_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class FileGenerator {
buffer.writeln('String toString() {');
buffer.write('return \'${c.name}{');

final params = c.props.map((p) => '${p.name}: \$${p.name}').join(', ');
final params =
c.props.map((p) => '${p.name}: \'+${p.name}.toString()+\'').join(', ');
buffer.write(params);

buffer.writeln('}\';');
Expand Down

0 comments on commit 885a7f9

Please sign in to comment.