dispose method
void
dispose()
Closes the stream (cleanup).
Implementation
void dispose() {
_controller.close();
_listeners.forEach((event, entries) {
for (var entry in entries) {
entry.value.cancel();
}
});
_listeners.clear();
}