enable lint prefer_final_in_for_each (#47724)
This commit is contained in:
committed by
GitHub
parent
fa337f5922
commit
4f9b6cf017
@@ -122,7 +122,7 @@ void diffMaps(
|
||||
'${messagePrefix}keys (expected: ${expected.keys} actual: ${actual.keys} ');
|
||||
return;
|
||||
}
|
||||
for (String key in expected.keys) {
|
||||
for (final String key in expected.keys) {
|
||||
if (excludeKeys.contains(key))
|
||||
continue;
|
||||
if (doublesApproximatelyMatch(expected[key], actual[key]))
|
||||
|
||||
@@ -123,7 +123,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
|
||||
await channel.invokeMethod<void>('pipeFlutterViewEvents');
|
||||
await viewChannel.invokeMethod<void>('pipeTouchEvents');
|
||||
print('replaying ${recordedEvents.length} motion events');
|
||||
for (Map<String, dynamic> event in recordedEvents.reversed) {
|
||||
for (final Map<String, dynamic> event in recordedEvents.reversed) {
|
||||
await channel.invokeMethod<void>('synthesizeEvent', event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user