ServiceContainer class
Service container for dependency injection Matches iOS ServiceContainer from Foundation/DependencyInjection/ServiceContainer.swift
Properties
- apiClient → APIClient?
-
API client
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → SDKLogger
-
Logger
no setter
- networkService → NetworkService?
-
Network service for HTTP operations
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createAPIClient(
{required Uri baseURL, required String apiKey}) → APIClient - Create an API client with the given configuration
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Reset all services (for testing)
-
setNetworkService(
NetworkService service) → void - Set network service (called during initialization)
-
setupLocalServices(
{required String apiKey, required Uri baseURL, required SDKEnvironment environment}) → Future< void> - Setup local services (no network calls)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
Shared instance
final