[flutter-freezed] Can't handle multiple line comments
See original GitHub issue- Wrong part code generated
Expected
part 'app_models.freezed.dart';
Actualpart 'app_models.dart';
- Can’t handle multiline comments
@JsonKey
in enums missing"
and,
end of the line Expected@JsonKey(name: "ACCOUNT_NOT_CONFIRMED") account_not_confirmed,
Actual@JsonKey(name: ACCOUNT_NOT_CONFIRMED) account_not_confirmed
- Some key words generated in enums (in,is,do,void,default) but it’s depends on what graphql server gives https://demo.saleor.io/graphql/
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:18 (10 by maintainers)
Top Results From Across the Web
dart - Flutter: Compilation issues with the packages Freezed ...
As per freezed documentation: The changes necessary to make it compatible with json_serializable consists of two lines: a new part: part ...
Read more >freezed | Dart Package - Pub.dev
Implementing all of this can take hundreds of lines, which are error-prone and affect the readability of your model significantly. Freezed tries to...
Read more >Unable to fold multiline method signatures and calls ... - GitHub
It looks like DartFoldingBuilder does not handle multi-line method signatures. (Although I didn't look too closely.) The Flutter plugin does ...
Read more >How to use Freezed with Flutter - developer.school
If you're new to Flutter or haven't used immutable classes before, you may not see an immediate value in using freezed .
Read more >Data Modeling with Flutter using freezed package
It wouldn't make sense to create data models when the data model you created does not reflect in the backend. Take a look...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I handled some issues on my branch and also updated tests.
Regarding Issue numbered 4 by @endigo
What @endigo says might be explained with below example
There’s a lot of reserved keyword on dart language. see here dart language keywords
Is it okay if I append _(underscore) after like this?
If there’s better solution, let me know.
Another handled Issues
@Parables It would be appreciate if you reply to me!
@auaicn please find the source of these issues in the comment quoted above.
I’m currently under lots of pressure to meet multiple deadlines so I will be very grateful if you can help me out with a PR for these fixes