dart_style
dart_style copied to clipboard
Non-ideal formatting on x.y.foo(...)
We had the following lines:
Zone.current.scheduleMicrotask(
Zone.current.bindCallback(callback, runGuarded: true));
They were changed to:
Zone.current
.scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded: true));
The original formatting feels more informative.
Perhaps this could be an option https://github.com/dart-lang/dart_style/issues/731
The forthcoming tall style gives you:
Zone.current.scheduleMicrotask(
Zone.current.bindCallback(callback, runGuarded: true),
);
That's not the same as the original formatting, of course, because of the change to how argument lists split. But I think it looks pretty good and avoids splitting after .current.