diff --git a/packages/flutter/lib/src/material/about.dart b/packages/flutter/lib/src/material/about.dart index b6ea5f91020d..a2c808b86232 100644 --- a/packages/flutter/lib/src/material/about.dart +++ b/packages/flutter/lib/src/material/about.dart @@ -756,7 +756,7 @@ class _DetailArguments { final List licenseEntries; @override - bool operator ==(final dynamic other) { + bool operator ==(final Object other) { if (other is _DetailArguments) { return other.packageName == packageName; } diff --git a/packages/flutter/test/rendering/mouse_tracker_cursor_test.dart b/packages/flutter/test/rendering/mouse_tracker_cursor_test.dart index 739e80cd9630..7829d697289b 100644 --- a/packages/flutter/test/rendering/mouse_tracker_cursor_test.dart +++ b/packages/flutter/test/rendering/mouse_tracker_cursor_test.dart @@ -462,7 +462,7 @@ class _CursorUpdateDetails extends MethodCall { Map get arguments => super.arguments as Map; @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { if (identical(other, this)) { return true; }