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:
committed by
GitHub
parent
046f960ae2
commit
387f885481
@@ -109,9 +109,9 @@ class PlatformViewState extends State<PlatformViewPage> {
|
||||
key: const ValueKey<String>('play'),
|
||||
child: const Text('PLAY FILE'),
|
||||
onPressed: () { playEventsFile(); },
|
||||
)
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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)';
|
||||
|
||||
@@ -31,7 +31,7 @@ class _TestAppState extends State<TestApp> {
|
||||
0.0,
|
||||
'hello',
|
||||
<dynamic>[
|
||||
<String, dynamic>{'key': 42}
|
||||
<String, dynamic>{'key': 42},
|
||||
],
|
||||
];
|
||||
static final Map<String, dynamic> aMap = <String, dynamic>{
|
||||
@@ -40,7 +40,7 @@ class _TestAppState extends State<TestApp> {
|
||||
'c': 0.0,
|
||||
'd': 'hello',
|
||||
'e': <dynamic>[
|
||||
<String, dynamic>{'key': 42}
|
||||
<String, dynamic>{'key': 42},
|
||||
],
|
||||
};
|
||||
static final Uint8List someUint8s = Uint8List.fromList(<int>[
|
||||
|
||||
Reference in New Issue
Block a user