Add missing trailing commas (#28673)

* add trailing commas on list/map/parameters

* add trailing commas on Invocation with nb of arg>1

* add commas for widget containing widgets

* add trailing commas if instantiation contains trailing comma

* revert bad change
This commit is contained in:
Alexandre Ardhuin
2019-03-01 08:17:55 +01:00
committed by GitHub
parent 046f960ae2
commit 387f885481
626 changed files with 5183 additions and 5183 deletions

View File

@@ -109,9 +109,9 @@ class PlatformViewState extends State<PlatformViewPage> {
key: const ValueKey<String>('play'),
child: const Text('PLAY FILE'),
onPressed: () { playEventsFile(); },
)
),
],
)
),
],
);
}

View File

@@ -10,7 +10,7 @@ const List<int> kPointerActions = <int>[
0, // DOWN
1, // UP
5, // POINTER_DOWN
6 // POINTER_UP
6, // POINTER_UP
];
const double kDoubleErrorMargin = 0.0001;
@@ -152,7 +152,7 @@ String getActionName(int actionMasked, int action) {
'HOVER_ENTER',
'HOVER_EXIT',
'BUTTON_PRESS',
'BUTTON_RELEASE'
'BUTTON_RELEASE',
];
if (actionMasked < actionNames.length)
return '${actionNames[actionMasked]}($action)';