launchdarkly_flutter_client_sdk library Null safety

launchdarkly_flutter_client_sdk provides a Flutter wrapper around the LaunchDarkly mobile SDKs for Android and iOS.

A complete reference guide is available on the LaunchDarkly documentation site.

Classes

LDAttributesBuilder
A builder for constructing LDContextAttributes.
LDClient
The main interface for the LaunchDarkly Flutter SDK.
LDConfig
A configuration object used when initializing the LDClient.
LDConfigBuilder
A builder for LDConfig.
LDConnectionInformation
Describes the connectivity state of the SDK, and information on occurrence of request failures and successes.
LDContext
A collection of attributes that can be referenced in flag evaluations and analytics events. A LDContext may contain information about a single context or multiple contexts differentiated by the "kind" attribute.
LDContextAttributes
Collection of attributes for a LDContext
LDContextBuilder
A builder to facilitate the creation of LDContexts. Note that the return type of kind is a LDAttributesBuilder that is used to define attributes for the specific kind of context you are creating.
LDEvaluationDetail<T>
Class returned by the "variation detail" methods such as LDClient.boolVariationDetail, combining the result of the evaluation with an explanation of how it was calculated.
LDEvaluationReason
Describes the reason that a flag evaluation produced a particular value.
LDFailure
Describes an error encountered during an attempt to retrieve flag values from the LaunchDarkly service.
LDValue
An immutable instance of any data type that is allowed in JSON.
LDValueArrayBuilder
Builder for constructing an LDValueType.ARRAY typed LDValue.
LDValueObjectBuilder
Builder for constructing an LDValueType.OBJECT typed LDValue.

Extensions

ContextAttributesCodec
Extension functionality for converting LDContextAttributes to value that can be ingested as method channel arguments
ContextCodec
Extension functionality for converting LDContext to value that can be ingested as method channel arguments

Enums

AutoEnvAttributes
Enable / disable options for Auto Environment Attributes functionality. When enabled, the SDK will automatically provide data about the mobile environment where the application is running. This data makes it simpler to target your mobile customers based on application name or version, or on device characteristics including manufacturer, model, operating system, locale, and so on. We recommend enabling this when you configure the SDK. See https://docs.launchdarkly.com/sdk/features/environment-attributes for more documentation.
LDConnectionState
Enumerated type defining the possible connection states for the SDK.
LDErrorKind
Enumerated type defining the defined error cases for an LDEvaluationReason with the kind LDKind.ERROR.
LDFailureType
Enumerated type defining the defined failures the SDK can report encountering while fetching flag values.
LDKind
Enumerated type defining the possible reasons for a flag evaluation result, used in LDEvaluationReason.
LDValueType
Describes the type of an LDValue. These correspond to the standard types in JSON.

Typedefs

LDFlagsReceivedCallback = void Function(List<String> changedFlagKeys)
Type of function callback used by LDClient.registerFlagsReceivedListener.
LDFlagUpdatedCallback = void Function(String flagKey)
Type of function callback used by LDClient.registerFeatureFlagListener.