add explicit const keywords (#23652)
diff --git a/packages/flutter/test/widgets/gesture_detector_test.dart b/packages/flutter/test/widgets/gesture_detector_test.dart index 2b4f469..1107aab 100644 --- a/packages/flutter/test/widgets/gesture_detector_test.dart +++ b/packages/flutter/test/widgets/gesture_detector_test.dart
@@ -340,7 +340,7 @@ await gesture.up(); } - await longPress(kLongPressTimeout + Duration(seconds: 1)); // To make sure the time for long press has occured + await longPress(kLongPressTimeout + const Duration(seconds: 1)); // To make sure the time for long press has occurred expect(longPressUp, 1); }); }
diff --git a/packages/flutter_tools/test/devfs_test.dart b/packages/flutter_tools/test/devfs_test.dart index 8aebeb0..e1502ec 100644 --- a/packages/flutter_tools/test/devfs_test.dart +++ b/packages/flutter_tools/test/devfs_test.dart
@@ -71,7 +71,7 @@ file.parent.createSync(recursive: true); file.writeAsBytesSync(<int>[1, 2, 3]); - final DateTime fiveSecondsAgo = DateTime.now().subtract(Duration(seconds:5)); + final DateTime fiveSecondsAgo = DateTime.now().subtract(const Duration(seconds:5)); expect(content.isModifiedAfter(fiveSecondsAgo), isTrue); expect(content.isModifiedAfter(fiveSecondsAgo), isTrue); expect(content.isModifiedAfter(null), isTrue);