Add spaces after flow control statements (#126320)
This commit is contained in:
@@ -1091,7 +1091,7 @@ abstract class WidgetController {
|
||||
),
|
||||
]),
|
||||
...<PointerEventRecord>[
|
||||
for(int t = 0; t <= intervals; t += 1)
|
||||
for (int t = 0; t <= intervals; t += 1)
|
||||
PointerEventRecord(timeStamps[t], <PointerEvent>[
|
||||
PointerMoveEvent(
|
||||
timeStamp: timeStamps[t],
|
||||
|
||||
@@ -2445,7 +2445,7 @@ class _MatchesSemanticsData extends Matcher {
|
||||
final bool actionExpected = actionEntry.value;
|
||||
final bool actionPresent = (action.index & data.actions) == action.index;
|
||||
if (actionPresent != actionExpected) {
|
||||
if(actionExpected) {
|
||||
if (actionExpected) {
|
||||
missingActions.add(action);
|
||||
} else {
|
||||
unexpectedActions.add(action);
|
||||
@@ -2490,7 +2490,7 @@ class _MatchesSemanticsData extends Matcher {
|
||||
final bool flagExpected = flagEntry.value;
|
||||
final bool flagPresent = flag.index & data.flags == flag.index;
|
||||
if (flagPresent != flagExpected) {
|
||||
if(flagExpected) {
|
||||
if (flagExpected) {
|
||||
missingFlags.add(flag);
|
||||
} else {
|
||||
unexpectedFlags.add(flag);
|
||||
|
||||
@@ -285,7 +285,7 @@ void main() {
|
||||
await tester.tap(find.text('test'), buttons: kSecondaryMouseButton);
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
} else if (i != logs.length - 1) {
|
||||
@@ -342,7 +342,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
} else if (i != logs.length - 1) {
|
||||
@@ -374,7 +374,7 @@ void main() {
|
||||
await tester.drag(find.text('test'), const Offset(-150.0, 200.0), buttons: kSecondaryMouseButton);
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
} else if (i != logs.length - 1) {
|
||||
@@ -408,7 +408,7 @@ void main() {
|
||||
|
||||
await tester.drag(find.text('test'), const Offset(-150.0, 200.0), kind: PointerDeviceKind.trackpad);
|
||||
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'panZoomStart');
|
||||
} else if (i != logs.length - 1) {
|
||||
@@ -441,7 +441,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
} else if (i != logs.length - 1) {
|
||||
@@ -506,7 +506,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
for (int i = 0; i < logs.length; i++) {
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
} else if (i != logs.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user