Lasse R.H. Nielsen

Results 772 comments of Lasse R.H. Nielsen

I would actually want trailing commas in initializer lists, after a final initializer, but not after a final super-constructor invocation. Because it allows reordering initializers. (Except that we put the...

Exactly. I want a comma after a _final_ initializer, one that doesn't have a super constructor invocation after it

Wouldn't it be great if the editor's "move line" was delimiter aware, so that moving a line that ends in `;` up would swap the two line contents, but keep...

The `add` goes through a `StreamController` which sends the data as an event. The error is triggered at the point where that data event is received, which is in another...

Keeping a zone alive is not relevant. They stay alive as long as something want to run in them. A bigger question is which zone the code that triggers the...

We should not use the`File` class for any URI scheme other than `file:`. The `File` class represents a POSIX file, or its path really, which is why it can be...

Does sound like you want a `ContentReader` API that accepts URIs and can read content through the corresponding Android API. That's not the `File` class. It may not be a...

That's the wonder of inherited documentation. It's correct for `Error` itself, but subclasses that don't extend `Error` may want to change documentation. The Dart API do have classes extending `Error`:...

This is probably the only place where it matters whether a class *extends* or *implements* a supertype, so it's unsurprising that DartDoc doesn't make the distinction.