setApiKey method

void setApiKey(
  1. String apiKey
)

Sets the API key for the AI service.

This method should be called before sending messages to ensure the AI service is properly configured.

Implementation

// ignore: avoid_setters_without_getters, use_setters_to_change_properties
void setApiKey(final String apiKey) {
  _aiService.apiKey = apiKey;
}