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
It would align well with lints if effective dart explained why you should get used to always using tearoffs when they have the same result.
E.g.
Never write: foo.forEach((e) => print(e))
when you can write for.forEach(print)
for all kinds of tearoffs.
I think we will want to reword the guideline around tear-offs a little since the current wording is limited to methods. Filed dart-lang/site-www#3560 to track.
Uh oh!
There was an error while loading. Please reload this page.
This issue tracks support of the constructor tearoffs feature. See the enclosing meta-issue for details.
The text was updated successfully, but these errors were encountered: