LDConfig class final

Constructors

LDConfig(String sdkCredential, AutoEnvAttributes autoEnvAttributes, {ApplicationInfo? applicationInfo, HttpProperties? httpProperties, ServiceEndpoints? serviceEndpoints, EventsConfig? events, PersistenceConfig? persistence, bool? offline, LDLogger? logger, DataSourceConfig? dataSourceConfig, bool? allAttributesPrivate, List<String>? globalPrivateAttributes, ApplicationEvents? applicationEvents})
sdkCredential set the credential for the SDK. This can be either a mobile key or a client-side ID depending on the build configuration. Refer to CredentialSource.fromEnvironment for information about selecting the correct key during build time.

Properties

allAttributesPrivate bool
finalinherited
applicationEvents ApplicationEvents
Configuration which affects how the SDK responds to events affecting the application.
getter/setter pair
applicationInfo ApplicationInfo?
Information about the application the LaunchDarkly SDK is running in. This is optional.
finalinherited
autoEnvAttributes AutoEnvAttributes
Controls the collection of automatic environment attributes.
finalinherited
dataSourceConfig DataSourceConfig
Settings for SDK data sources.
finalinherited
events EventsConfig
Configuration for analytics and diagnostic events.
finalinherited
globalPrivateAttributes List<String>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpProperties HttpProperties
Common http configuration which will apply to all http requests made by the SDK. As different platforms have different constraints, and the SDK adds its own configuration (additional headers for instance), not all settings are guaranteed to apply to all connections on all platforms.
finalinherited
logger LDLogger
The logger the SDK will use. By default the logger will log using print and will include info level log messages.
finalinherited
offline bool
Disables all network calls from the LaunchDarkly client.
finalinherited
persistence PersistenceConfig
Configuration for managing SDK persistence. The SDK persists things such as anonymous context keys and flag configuration.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkCredential String
The credential the SDK should use.
finalinherited
serviceEndpoints → ServiceEndpoints
Specifies the base service URIs used by SDK components.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited