Closed Tkko closed 1 year ago
I know that it's been a long time, but I had to make a longer break due to health issues. Why not simply add a bool flag inside the Bloc object that tells if it can be disposed? or isn't it clear when the Bloc is created if it's used inside a factory or singleton?
Hey, I'd like to know whether registered object is singleton or not. Use case: I have a wrapper widget around Cubit/Bloc which retrieves correct instance of bloc from getIt, but I have an issue when I'm trying to close/dispose the bloc, there are two cases
Possible solution would be to expose.type() or
_ServiceFactoryType
and call getItgetIt.typeOf<T>()