DartBridgeEnvironment class
Environment bridge for C++ environment validation and configuration.
Matches Swift's CppBridge+Environment.swift.
C++ provides:
- Environment validation (API key, URL)
- Environment-specific settings (log level, telemetry)
- Configuration validation
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDefaultLogLevel(
SDKEnvironment environment) → int - Get default log level for environment
-
getDescription(
SDKEnvironment environment) → String - Get environment description
-
getValidationErrorMessage(
ValidationResult result) → String - Get error message for validation result
-
isProduction(
SDKEnvironment environment) → bool - Check if environment is production
-
isTesting(
SDKEnvironment environment) → bool - Check if environment is a testing environment
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requiresAuth(
SDKEnvironment environment) → bool - Check if environment requires API authentication
-
requiresBackendURL(
SDKEnvironment environment) → bool - Check if environment requires a backend URL
-
shouldSendTelemetry(
SDKEnvironment environment) → bool - Check if telemetry should be sent
-
shouldSyncWithBackend(
SDKEnvironment environment) → bool - Check if should sync with backend
-
toString(
) → String -
A string representation of this object.
inherited
-
validateApiKey(
String? apiKey, SDKEnvironment environment) → ValidationResult - Validate API key for environment
-
validateBaseURL(
String? url, SDKEnvironment environment) → ValidationResult - Validate base URL for environment
-
validateConfig(
{required SDKEnvironment environment, String? apiKey, String? baseURL}) → ValidationResult - Validate complete configuration
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → DartBridgeEnvironment
-
final