LDConfigBuilder class Null safety

A builder for LDConfig.

Constructors

LDConfigBuilder(String _mobileKey, AutoEnvAttributes autoEnvAttributes)
Create a new LDConfigBuilder. Configurable values are all set to their default values. The client app can modify these values as desired.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

allAttributesPrivate(bool allAttributesPrivate) LDConfigBuilder
Configures the SDK to never include optional attribute values in analytics events.
applicationId(String applicationId) LDConfigBuilder
A unique identifier representing the application where the LaunchDarkly SDK is running.
applicationName(String applicationName) LDConfigBuilder
A friendly name for the application where the LaunchDarkly SDK is running.
applicationVersion(String applicationVersion) LDConfigBuilder
A unique identifier representing the version of the application where the LaunchDarkly SDK is running.
applicationVersionName(String applicationVersionName) LDConfigBuilder
A friendly name for the application version where the LaunchDarkly SDK is running.
backgroundPollingIntervalMillis(int backgroundPollingIntervalMillis) LDConfigBuilder
Sets the interval between background flag poll requests.
build() LDConfig
Create an LDConfig from the current configuration of the builder.
connectionTimeoutMillis(int connectionTimeoutMillis) LDConfigBuilder
Sets the connection timeout for network requests.
diagnosticOptOut(bool diagnosticOptOut) LDConfigBuilder
Set to true to opt out of sending diagnostics data.
diagnosticRecordingIntervalMillis(int diagnosticRecordingIntervalMillis) LDConfigBuilder
Set the interval at which periodic diagnostic data is sent.
disableBackgroundUpdating(bool disableBackgroundUpdating) LDConfigBuilder
Disables or enables background polling requests for flag values.
evaluationReasons(bool evaluationReasons) LDConfigBuilder
Configure whether the SDK will request evaluation reasons to be included in flag data from the service.
eventsCapacity(int eventsCapacity) LDConfigBuilder
Set the capacity of the event buffer.
eventsFlushIntervalMillis(int eventsFlushIntervalMillis) LDConfigBuilder
Sets the maximum amount of time in between sending analytics events to LaunchDarkly.
eventsUri(String eventsUri) LDConfigBuilder
Sets the URI for eventing requests.
maxCachedContexts(int maxCachedContexts) LDConfigBuilder
Sets how many contexts to store the flag values for in on-device storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
offline(bool offline) LDConfigBuilder
Disables or enables network calls from the LaunchDarkly client.
pollingIntervalMillis(int pollingIntervalMillis) LDConfigBuilder
Sets the interval between foreground flag poll requests.
pollUri(String pollUri) LDConfigBuilder
Sets the URI for polling requests.
privateAttributes(Set<String> privateAttributes) LDConfigBuilder
Sets a Set of private attributes to never include the values for in analytics events.
stream(bool stream) LDConfigBuilder
Enables or disables real-time streaming flag updates.
streamUri(String streamUri) LDConfigBuilder
Sets the URI for stream requests.
toString() String
A string representation of this object.
inherited
useReport(bool useReport) LDConfigBuilder
Configure whether the SDK should use the HTTP REPORT verb for flag requests.

Operators

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