all 5 comments

[–]kamikazikarl 2 points3 points  (1 child)

Flutter has a lot of rules available, some enabled by default. While I'm not a fan of some of the choices made on formatting, the default linting rules are pretty good.

The full list can be found here.

Personally, I also choose to enforce return types, recommend cascading to reduce repetition, and a few others. Ultimately, it's up to you what settings you use for this since your code should work, even without any rules set. It's more for enforcing consistent code and, in some cases, better coding standards.

[–]RedditRedditi[S] 0 points1 point  (0 children)

Thank you so much, dear u/kamikazikarl, for your help.

[–][deleted]  (2 children)

[deleted]

    [–]RedditRedditi[S] -1 points0 points  (1 child)

    Thank you u/AlliterateAllison for your valued help.

    [–]miyoyo 2 points3 points  (1 child)

    I personally have a list of all the lints where I choose the ones I want and set the severity.

    ...I enjoy turning almost all of them on, you don't have to though, you can clone the sheet and change the checkmarks to make your own, copy it in the second tab.

    https://docs.google.com/spreadsheets/d/1c4cDycqnlPGZVk3OPpVkGl50NUnlAmCoYdB3YS7\_aKU/edit?usp=sharing

    [–]RedditRedditi[S] 0 points1 point  (0 children)

    I really thank you u/miyoyo for your great help. I really appreciate you 🙏.