How to inject dependency with Get_it if your dependencies are made of BLoC and Cubit?
First you need to create the related BLoC or Cubit for your app and you also have the use cases ready for them.
After that you need to create an instance of get_it and create a function called init(). Inside init you may inject your dependency.
See our instance sl of get_it and then the init() function. Sl will find inject the correct dependency for each of them.
Inside AuthenticationCubit we have createUsers and getUsers. Here createUsers and getUsers are in domain layer. AuthenticationCubit lives in presentation layer.
Here on line 12, we see CreateUser(sl()), this CreateUser() depends on repository.
get_it will find the dependencies and inject from there.