Closed iamarnas closed 3 years ago
I'll try to manage my time for this. thank you for the suggestion
@hiranthaR Hi again.
I found one bug to. Most of API providers use word get
in their json files you can see in my bild example. And when your extension generate code his create String value
with name get
which is reserved by system. I recommend to regenerate this to example: class Products {}
generate String getProtucts
instead String get
.
From my picture it would be value String getTimezone
@hiranthaR Hi, I have updated your app syntax.ts file and you can see how was before and after update.
And now all generated files by your extension is full supported Effective Dart: Style and friendly with expert developers :)
No more List<Null>
warning or (empty list error) and all reserved values by system are regenerated automatically. You can see in the example what it looks like.
Planning add automatic identification of DateTime
from the String
and copyWith();
Function.
Today added copyWith();
method. User can choose before generating files :)
@iamarnas hi, I fixed others without copyWith function. I'll do it another day. can you check your requirements are satisfied?
@hiranthaR Nice, I'll do it. I did not expect you to fix it so quickly. That's why I updated your extension it myself :) If you are interested I can share to you my changes. I have advanced syntax formatting it detect when needs expression function or block function very correct to dartfmt. And planning to add for to ask user if he want use immutable classes or not. Because for now only with Equatable creates immutable classes. It should be more flexible.
@iamarnas oh sorry. I didn't know that. sure open a PR. I'll revert my commits and publish yours. It's totally fine.
@hiranthaR Hi, Here is your result after new update :)
remove const
from the constructor for now. It's not immutable class and it will show lint error for all created classes. That why I want add function to ask users if they want use @immutable
classes. Leave me to fix all Dart languages guide lines becouse im pedantic Dart user ;)
I think we are better to go with your changes
@hiranthaR Hi. Opened a PR. Just needs update the readme-file after new changes. And here your English is better than mine :)
How it looks syntax after update.
Describe the bug Would it be possible follow effective dart style guides.
Screenshots
Version version: 2.4.1