Since Dart 3.7, the formatter uses a new style that can automatically add and remove commas. You no longer have any choice about where to put trailing commas.
So it is automatically correct :)