-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
Consider
void something() => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
'Afterwards',
);
class Something {
void something() => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
'Afterwards',
);
}
void main() {
final result = switch (value) {
Something() => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
),
};
calling(
() => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
'Afterwards',
),
);
calling(
function:
() => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
'Afterwards',
),
);
}
The last call to: calling(function:))
feels inconsistent with the other formatting.
Expected:
calling(
function: () => functionCall(
'Hello world!',
'Good night city!',
'Goodbye, world!',
'Afterwards',
),
);
Rational:
function: () =>
something() =>
Something() =>
Something.something() =>
All feel similar as in it's a label that points to an expression to be executed.
Metadata
Metadata
Assignees
Labels
No labels