openfeature library

Classes

BaseEvaluation<T>
This is a common interface between the evaluation results that providers return and what is given to the end users.
BooleanHook
Client
Interface used to resolve flags of varying types.
EnvVarProvider
NoOpProvider version of EnvVarProvider since Web does not have dart:io.
EvaluationContext
The EvaluationContext is a container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
FeatureProvider
The interface implemented by upstream flag providers to resolve flags for their service.
Features
An API for the type-specific fetch methods offered to users.
FlagEvaluationDetails<T>
Contains information about how the evaluation happened, including any resolved values.
FlagEvaluationOptions
Hook<T>
An extension point which can run around flag resolution. They are intended to be used as a way to add custom logic to the lifecycle of flag evaluation.
HookContext<T>
A data class to hold immutable context that Hook instances use.
HookSupport
ImmutableContext
The EvaluationContext is a container for arbitrary contextual data that can be used as a basis for dynamic evaluation. The ImmutableContext is an EvaluationContext implementation which is threadsafe, and whose attributes can not be modified after instantiation.
ImmutableStructure
Metadata
Holds identifying information about a given entity.
MetadataName
NoOpProvider
A FeatureProvider that simply returns the default values passed to it.
NumberHook
OpenFeatureAPI
A global singleton which holds base configuration for the OpenFeature library. Configuration here will be shared across all Client.
OpenFeatureClient
ProviderEvaluation<T>
StringHook
Structure
Structure represents a potentially nested object type which is used to represent structured data.
Value
Values serve as a generic return type for structure data from providers. Providers may deal in JSON, protobuf, XML or some other data-interchange format. This intermediate representation provides a good medium of exchange.

Enums

ErrorCode
FlagValueType
The type of a flag value.
Reason
Predefined resolution reasons.

Typedefs

HookConsumer = void Function(Hook param)
StructureMergeFunction = Structure Function(Map<String, Value> parameters)

Exceptions / Errors

FlagNotFoundError
GeneralError
InvalidContextError
The evaluation context does not meet provider requirements.
OpenFeatureError
ParseError
An error was encountered parsing data, such as a flag configuration.
TargetingKeyMissingError
The provider requires a targeting key and one was not provided in the evaluation context.
TypeMismatchError
The type of the flag value does not match the expected type.
ValueNotConvertableError
The value can not be converted to a Value.