This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
[Rule change] prefer-moving-to-variable #1101
Closed
Description
Is it possible to consider the generic types in the rule prefer-moving-to-variable
?
E.g. when we use get_it the rule doesn't work correctly:
final a = GetIt.instance<InstanceA>(); // Prefer moving repeated invocations to variable and use it instead
final b = GetIt.instance<InstanceB>(); // Prefer moving repeated invocations to variable and use it instead