Optional
onThe error handling function to call when an error occurs.
The start function called when all listeners are started.
The stop function called when all listeners are stopped.
Protected
emitEmits a state change event with the given value.
The state value to emit.
A Listener class that manages event listeners for state changes.