James D. Lin
                                            James D. Lin
                                        
                                    ### Page URL https://dart.dev/tools/non-promotion-reasons.html ### Page source https://github.com/dart-lang/site-www/tree/master/src/tools/non-promotion-reasons.md ### Describe the problem A lot of people are confused that non-local variables aren't automatically promoted by `is` or null checks. Although...
AFAIK the difference between `List.of()` and `List.from()` (and likewise, `Map.of()`/`Map.from()`, `Set.of()`/`Set.from()`, and various other collection types) is that `.of()` takes an argument of the same type as what it returns...
In many other programming languages, things like `someBooleanExpression == true` are a code smell and should be simplified to just `someBooleanExpression`. It's simpler and is easier to read. I've seen...
**Describe the rule you'd like to see implemented** I'd like a lint that generates a warning if the dartdoc comments to a public member refer to a private member. Such...
## What happened? In Firefox, uncaught exceptions are printed to the console twice and look confusing. ## Steps to reproduce problem Run: ```dart void main() { throw Exception('hello'); } ```...
The [documentation for the `Image` class](https://pub.dev/documentation/image/latest/image/Image-class.html) states: > Pixels are stored in 32-bit unsigned integers in #AARRGGBB format. The `Image.fromBytes` constructor states: > The native format of an image is...
`splitdiff` is able to split a single patch file into multiple (potentially many) patch files. `combinediff` is able to combine exactly two patch files. Why is `combinediff` not a proper...
Currently https://dartpad.dartlang.org responds with a 404 page. https://dartpad.dartlang.org was the URL for quite a while and now is ingrained into my browser history, so whenever I type "dartpad" into my...
Mixing deprecated APIs with non-deprecated ones can be very visually distracting. For example, from https://api.dartlang.org/stable/2.2.0/dart-io/HttpStatus-class.html:  Can dartdoc sort them to the end of whatever section they're...
The `static` `List.castFrom` method is shown with an "override" label:  Although `List` extends `Iterable` and `Iterable` has its own `Iterable.castFrom` `static` method, they are effectively independent functions that just...