updateApiKey method
Updates the API key and recreates the network client.
Implementation
Future<void> updateApiKey() async {
_client?.dispose();
// Reset to null to force recreation.
_client = null;
_searchService = null;
await _initializeClient();
}