Bob Nystrom
Bob Nystrom
I'd like it to force them too, but it's a little tricky to implement so I haven't yet. In the meantime, if you add blank lines yourself there, it should...
This is essentially the same issue as #1466. (`=>` and `=` are formatted using the same code, and cascades and method chains are mostly formatted using the same code.) I...
With #1687, I managed to finally fix #1465, and #1466. Using that fix, the output I now get on your original example is: ```dart final value = Value( (b) =>...
No promises, but I'm hoping to get this into Dart 3.8.
Both of those SGTM.
Re-opening because I think @sigmundch would still like some changes to "Effective Dart". I'm not crazy about using `is` because I don't want users to think subtyping gets involved, but...
Using the new pattern matching features in Dart 3.0, you could write: ```dart static String propertyType(dynamic property) => switch (property) { Hotel() => "Hotel", Resort() => "Resort", Diving() => "Diving",...
> I fear that to get that sort of indentation I would need to provide a full project. All you need to include is the entire declaration, so just `late...
Hey, @escamoteur, I'd be happy to try this out in the new formatter and see how it looks... but I'm definitely not going to retype all that code by hand....
Thanks, @Juliotati! I ran that code through the [forthcoming](https://github.com/dart-lang/dart_style/issues/1403) [tall style](https://github.com/dart-lang/dart_style/issues/1253) formatter and got: ```dart late final Command addNewMessageCommand = Command.createAsyncNoResult( _addNewMessage, errorFilter: ApiErrorFilter( (error) => error.code == 412 ||...