From 27bd3fd54b71e0f436f466e7e7556519e7d8ba3a Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 7 Dec 2023 10:20:32 -0800 Subject: [PATCH] Keep operator== parameter type as Object --- packages/freezed/lib/src/templates/concrete_template.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/freezed/lib/src/templates/concrete_template.dart b/packages/freezed/lib/src/templates/concrete_template.dart index edf28aa2..70a1eadb 100644 --- a/packages/freezed/lib/src/templates/concrete_template.dart +++ b/packages/freezed/lib/src/templates/concrete_template.dart @@ -478,7 +478,7 @@ String toString($parameters) { return ''' @override -bool operator ==(dynamic other) { +bool operator ==(Object other) { return identical(this, other) || (${comparisons.join('&&')}); } ''';