All your BloCs must extend the Bloc abstract class. This means that all of them should have a dispose method that will be executed whenever the life of the BloC comes to an end.
In this method, you should take care of closing all the sinks and resources.
The BlocProvider class depends on InheritedWidget. Whenever you want to get your BloC, you can decide wether to attach the context of your widget to the InheritedWidget or not.
In order to control this behavior, the static method of has an optional boolean argument (which is true by default) which determines wether your context will be attached or not.