Skip to content

Factory providers #893

@subzero911

Description

@subzero911

Seems like there's currently no possibility to make a provider which returns a new instance every time I access it.

I can do it in get_it:

getIt.registerFactory<MyModel>(() => MyModel());

How about adding it to provider?
It either could be a new FactoryProvider, or a factory: true property to the existing Provider widget.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions