initializeFromExistingEnv static method

void initializeFromExistingEnv()

Mark as initialized using the already-loaded dotenv from the host app. Use this when the host app has already called dotenv.load() with the correct env file containing API_BASE_URL and other required variables.

Implementation

static void initializeFromExistingEnv() {
  if (_isInitialized) return;
  _isInitialized = true;
}