diff --git a/examples/api/test/material/tooltip/tooltip.0_test.dart b/examples/api/test/material/tooltip/tooltip.0_test.dart index d0132e2f6594..316bafe46b44 100644 --- a/examples/api/test/material/tooltip/tooltip.0_test.dart +++ b/examples/api/test/material/tooltip/tooltip.0_test.dart @@ -17,8 +17,9 @@ void main() { TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); addTearDown(() async { - if (gesture != null) + if (gesture != null) { return gesture.removePointer(); + } }); await gesture.addPointer(); await gesture.moveTo(const Offset(1.0, 1.0)); diff --git a/examples/api/test/material/tooltip/tooltip.1_test.dart b/examples/api/test/material/tooltip/tooltip.1_test.dart index b1bd229ce295..6116f2c08fa7 100644 --- a/examples/api/test/material/tooltip/tooltip.1_test.dart +++ b/examples/api/test/material/tooltip/tooltip.1_test.dart @@ -17,8 +17,9 @@ void main() { TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); addTearDown(() async { - if (gesture != null) + if (gesture != null) { return gesture.removePointer(); + } }); await gesture.addPointer(); await gesture.moveTo(const Offset(1.0, 1.0)); diff --git a/examples/api/test/material/tooltip/tooltip.2_test.dart b/examples/api/test/material/tooltip/tooltip.2_test.dart index 7bc21d357d41..8aa1411df2e7 100644 --- a/examples/api/test/material/tooltip/tooltip.2_test.dart +++ b/examples/api/test/material/tooltip/tooltip.2_test.dart @@ -17,8 +17,9 @@ void main() { TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); addTearDown(() async { - if (gesture != null) + if (gesture != null) { return gesture.removePointer(); + } }); await gesture.addPointer(); await gesture.moveTo(const Offset(1.0, 1.0));