closeSubject method

void closeSubject()

called inside dispose implementation in any BLoC class to provide a way to close the publish subject safely and avoid memory leaks.

Avoid to call this function anywhere else as it will close the communication between all your project BLoCs and all Renderers till the app restarts.

Implementation

void closeSubject() => _rendererSubject.close();