We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e583d commit 4c9f987Copy full SHA for 4c9f987
lib/src/protobuf/generated_message.dart
@@ -67,8 +67,12 @@ abstract class GeneratedMessage {
67
// TODO(antonm): move to getters.
68
int getTagNumber(String fieldName) => info_.tagNumber(fieldName);
69
70
- bool operator ==(other) =>
71
- other is GeneratedMessage ? _fieldSet._equals(other._fieldSet) : false;
+ bool operator ==(other) {
+ if (identical(this, other)) return true;
72
+ return other is GeneratedMessage
73
+ ? _fieldSet._equals(other._fieldSet)
74
+ : false;
75
+ }
76
77
/// Calculates a hash code based on the contents of the protobuf.
78
///
0 commit comments