void setApiStatus(ConnectionStatus status, {String? error}) { apiStatus = status; apiError = error; }