James D. Lin

Results 49 issues of 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...

enhancement
p3-low
e0-minutes
e1-hours
null-safety

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...

type-enhancement
lint request
P3

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...

type-enhancement
lint request
P3
NNBD

**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...

type-enhancement
lint request
P3

## 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'); } ```...

type-bug
P2
type-polish
area-error-messaging

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...

P1
type-infra

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: ![Screenshot from 2019-03-15 15-16-26](https://user-images.githubusercontent.com/17391434/54464804-6253ab00-4735-11e9-8a8f-2ca1a93c0a9c.png) Can dartdoc sort them to the end of whatever section they're...

type-enhancement
P2

The `static` `List.castFrom` method is shown with an "override" label: ![image](https://user-images.githubusercontent.com/17391434/224835081-8bf74006-9a69-4f80-ba06-1c1a8ccd6645.png) Although `List` extends `Iterable` and `Iterable` has its own `Iterable.castFrom` `static` method, they are effectively independent functions that just...

type-bug
contributions-welcome
P2