stop method
Implementation
void stop({bool closeController = false}) {
logDebug('Stopped listening.');
_subscription?.cancel();
_subscription = null;
_resetState();
if (closeController && !_controller.isClosed) {
_controller.close();
}
}