initialize static method

void initialize({
  1. required String apiKey,
  2. String? apiVersion,
})

Sets the API key used by googleAI when none is passed.

This replaces Firebase.initializeApp(). Ephemeral tokens (auth_tokens/...) are accepted and default to the v1alpha API.

Implementation

static void initialize({required String apiKey, String? apiVersion}) {
  _defaultApiKey = apiKey;
  _defaultApiVersion = apiVersion;
}