You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, it would be nice if it recognized the chain better here. I think the problem is the list literal. When you have collection literals in a method chain, it also considers formatting it like:
method([
stuff...
].method([
more stuff...
]);
In theory, it can handle both styles, but determining which to choose is difficult for it and there may be some interaction between the two.
This following was formatted by
dartfmt
:But there's clearly a method chain happening here, and it would be significantly more readable if it were expressed as:
(separate issue is why
events[0]
is put on its own line, but that's lower priority).The text was updated successfully, but these errors were encountered: