Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate with no new #54

Open
jiqimaogou opened this issue Aug 10, 2020 · 6 comments
Open

generate with no new #54

jiqimaogou opened this issue Aug 10, 2020 · 6 comments

Comments

@jiqimaogou
Copy link

hello, the flutter style of create an object with no "new" keyword.

but the https://javiercbk.github.io/json_to_dart/ generate code with new keyword.

@zeeshanhussain
Copy link

@jiqimaogou You can use https://zeeshanhussain.github.io/json_to_dart/ meanwhile, its a clone which follows latest pedantic guidelines.

@nsvetlakov
Copy link

Hi,
I have the analysis_options.yaml file included
and it shows that there are bugs in your code.

Screenshot - https://skr.sh/s4V7ofDmGNB?a

@zeeshanhussain
Copy link

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

@nsvetlakov
Copy link

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

analysis_options.zip

@nsvetlakov
Copy link

@nsvetlakov can you show your analysis file? I guess you have some extra lints which i haven't covered.

Hi,
I sended file, so can you fix errors whta analysis write and how long it take time?

@zeeshanhussain
Copy link

@nsvetlakov The error in your code is because of strong mode(implicit cast and dynamic). To fix that I would have to make a lot of changes and I am not looking forward to that as of now. Regarding the Collection literals warning, there is an option to use collection literals so you can use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants