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