== override parameters are non-nullable (#6900)

diff --git a/script/tool/test/util.dart b/script/tool/test/util.dart
index a8cb527..913242b 100644
--- a/script/tool/test/util.dart
+++ b/script/tool/test/util.dart
@@ -453,7 +453,7 @@
   final String? workingDir;
 
   @override
-  bool operator ==(dynamic other) {
+  bool operator ==(Object other) {
     return other is ProcessCall &&
         executable == other.executable &&
         listsEqual(args, other.args) &&