Check if the state should listen for events via the EventBus.
bool get allowStateUpdates => stateName != null && eventBus != null;