Skip to content
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
@furaiev

Description

@furaiev

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions