The listener that will be called when the state is toggled. By default, it will simply call onEnabled or onDisabled depending on the state.