@override Future<void> updateState(T? newState) async { await _cacheApi.setValue(stateKey, newState); return await super.updateState(newState); }