You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get all services that implement a particular interface, not just factories or named factories.
classAimplementsCleanable{
.
.
.
}
classBimplementsCleanable{
.
.
.
}
final result =GetIt.GetAll<Cleanable>() // result [A,B]
That way, when I log out, I can call clean on all "cleanable" classes. Or, better yet, let me access all registered services in the provided scope or default current, and I will filter out by type.
It will bring additional value to getIt since the developer will not have to remember to register those services with additional friction on some other form of registration management to call all of the "cleanable" services together.
The text was updated successfully, but these errors were encountered:
I would like to have the following functionality:
To get all services that implement a particular interface, not just factories or named factories.
That way, when I log out, I can call clean on all "cleanable" classes. Or, better yet, let me access all registered services in the provided scope or default current, and I will filter out by type.
It will bring additional value to getIt since the developer will not have to remember to register those services with additional friction on some other form of registration management to call all of the "cleanable" services together.
The text was updated successfully, but these errors were encountered: