My ternary conditions get formatted differently in two different projects, and i can't tell why
I have two apps, and the formatter is consistently formatting my ternary conditions in one way on one project and in a different way in the other.
I don't like inline ternary conditionals (because i think it's harder to notice them) like this one:
param: Platform.isIOS ? value1 : value2
So i always break it apart with a dummy comment, like so:
param: Platform.isIOS //
? value1
: value2
One of my projects (older, which is probably relevant) leaves this alone.
But the other one breaks that into this:
param:
Platform
.isIOS //
? value1
: value2,
which i think looks weird and is unnecessary and more unreadable.
Why does this happen?
When i simply copy lines or entire files from the older project into the newer, they get reformatted into this second variation.
I've copied over the entire analysis_options.yaml (which is tiny and doesn't have any values that seem related to this), and I've also tried searching through options on Dart linter rules which don't seem to have any options related to this.
It's driving me crazy, both that it does it, and that i don't understand why it does it. I don't even understand if it's Flutter or Dart that controls this behavior, and the versions of Flutter and Dart are the same for both projects since i'm working on both of them on the same machine.
I am using VS Code with Flutter extension Dart-Code.flutter and Dart extension Dart-Code.dart-code