-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHS of =>
has single cascade parameter prefer to keep it in line
#1525
Comments
There are two separate questions in your example:
When I try the new formatter on your second example, I get: target.map(
(innerMap) =>
innerMap..addAll({
'something': someMap['something'],
//...
}),
); So, I think as you prefer, it doesn't split before the In general, I expect with the new style that code will feel a little more vertically spaced out and less dense than it used to be. (That's why it's called "tall" style, after all.) It's not as compact, but I think it's overall easier to read. |
I see. It is better to read than before IMO. I still would prefer that either the RHS of I guess my main problem with the resulting format is that there are two more indents in the line above the closing parentheses for |
=>
has single cascade parameter prefer to keep it in line =>
has single cascade parameter prefer to keep it in line
About #1253, when there is a constructor with the last parameter that can "start" at the same line and end at another, this is what we get:
From the answer to a question I asked at #1523:
I'm not sure how this is handled today and if this will change but with the current formatter, when using cascades from a variable definition and it has only one, it stays in the same line:
I'd like to request for the new formatter to do the same with the following code and keep the single cascade in the same line if possible.
The text was updated successfully, but these errors were encountered: