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 a64fd2f commit 327c6aaCopy full SHA for 327c6aa
built_value_generator/lib/src/value_source_class.dart
@@ -1206,6 +1206,8 @@ abstract class ValueSourceClass
1206
result.writeln('if (__hashCode != null) return __hashCode$notNull;');
1207
}
1208
1209
+ // Use a different seed for builders than for values, so they do not have
1210
+ // identical hashCodes if the values are identical.
1211
final seed = forBuilder ? 1 : 0;
1212
result.writeln('int hash = $seed;');
1213
0 commit comments