avoid-instantiating-in-value-provider
Warns when a Provider.value
returns a new instance instead of reusing an existing one.
Example
❌ Bad:
Provider.value(
value: RegularService(), // LINT: Avoid creating a new instance. Try providing an existing one instead.
);
✅ Good:
Provider.value(
value: existingInstance,
);