OpenFeature Provider for Dart SDK
Integrate OpenFeature with Harness FME in your Dart applications to evaluate feature flags, manage contexts, and track events using a standardized SDK.
Integrate OpenFeature with Harness FME in your Dart and Flutter applications to evaluate feature flags using a standardized, vendor-agnostic SDK.
Integrate your Dart and Flutter applications with Harness FME using the Dart OpenFeature Provider, split_openfeature_provider_dart_client. This provider implements the OpenFeature specification and bridges the OpenFeature client-side API with the Harness FME Dart Client SDK (splitio_client_side).
This page walks you through installing, configuring, and using the Dart OpenFeature provider to evaluate feature flags in your application.
All of our SDKs are open source. Go to our Dart OpenFeature Provider GitHub repository to see the source code, or view the package on pub.dev.
Before you begin
A valid Harness FME client-side SDK key for your project
Dart SDK v3.0.0 or later
Version compatibility
split_openfeature_provider_dart_client
^0.1.0
openfeature_dart_client_sdk
^0.0.1-beta.1
splitio_client_side
^1.1.0
Install the provider and dependencies
All three packages below are required peer dependencies. Add them to your pubspec.yaml file:
dependencies:
split_openfeature_provider_dart_client: ^0.1.0
openfeature_dart_client_sdk: ^0.0.1-beta.1
splitio_client_side: ^1.1.0Initialize the provider
Register the Harness FME OpenFeature provider by using a SplitFactory instance.
Construct an evaluation context
Provide an evaluation context with a targeting key to evaluate flags. The evaluation context passes targeting information such as user IDs, email addresses, or plan types for flag targeting.
Evaluate flags
Use the standard OpenFeature client API to evaluate flags, rather than calling the underlying splitio_client_side SDK directly.
For more information, go to the Harness FME Dart OpenFeature Provider GitHub repository, or read more about the OpenFeature specification.
Reference links
OpenFeature spec: https://openfeature.dev/docs/reference/concepts/provider
Questions or feedback? Reach out to your Harness account team, or open an issue in the GitHub repository above.
Last updated
Was this helpful?