Skip to content

Commit 431c04b

Browse files
knaeckeKamidavidmorgan
authored andcommitted
refactor(built_value_generator): omit unnecessary type for local variable
1 parent 3f1d014 commit 431c04b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

built_value_generator/lib/src/value_source_class.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ abstract class ValueSourceClass
12091209
// Use a different seed for builders than for values, so they do not have
12101210
// identical hashCodes if the values are identical.
12111211
final seed = forBuilder ? 1 : 0;
1212-
result.writeln('int _\$hash = $seed;');
1212+
result.writeln('var _\$hash = $seed;');
12131213

12141214
for (var field in comparedFields) {
12151215
result.writeln('_\$hash = \$jc(_\$hash, ${field.name}.hashCode);');

0 commit comments

Comments
 (0)