linter
Linter for Dart. (by dart-lang)
dio
A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc. (by cfug)
Our great sponsors
linter | dio | |
---|---|---|
8 | 3 | |
626 | 12,213 | |
0.3% | 0.8% | |
9.0 | 9.0 | |
3 days ago | 3 days ago | |
Dart | Dart | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linter
Posts with mentions or reviews of linter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-15.
-
The Montreal Problem: Why Programming Languages Need a Style Czar
Same with Dart. You may not like the style too much, but at least it's consistent and everyone uses it.
Dart also has a kind of "standard lints" (one for Flutter, one for just Dart): https://dart.dev/tools/linter-rules
Even though you can write your own lints to verify every little detail of the code, the fact that standards exist is great.
Check out the rules enabled by the default lints, it's pretty amazing: https://github.com/dart-lang/lints/blob/main/rules.md
- Dart Error handling using Records (golang style)
- Why shouldn’t Either be used for error handling?
- Is it possible to know all the exceptions a method CAN throw
-
Dart null safety vs type safety (dart linter in strong mode)
It wouldn't hurt to make an issue on the linter repo https://github.com/dart-lang/linter, requesting a lint for casts that are known to be more restrictive than they need to be. So in this case its casting to a `String` but the type of the parameter the expression is passed to is `String?`, which is more restrictive (doesn't include null). There should be enough information to trigger such a lint in many situations - basically as long as there is some known type that the expression needs to be assignable to, in this case `String?`.
-
Thoughts on creating a library with Dart for browser and node
I've already converted 70% of the JS implementation in Dart, only for the browser for test, but the result was not as good as I hoped. The bundle size at the moment is ~110kb (with the -O4 flag). And I happen to learn that using async/await additionally increases the size with ~30kb (this angulardart issue is the only explanation I could found).
- Off my chest: Document the type of exception a method throws in the docs.
-
Is there a linter rule to disallow functional widgets?
I couldn't find anything, so I raised an issue https://github.com/dart-lang/linter/issues/2410
dio
Posts with mentions or reviews of dio.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-12.