Skip to content

marandaneto/openfeature-dart-sdk

Repository files navigation

OpenFeature SDK for Dart

codecov Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

package build pub likes popularity pub points
openfeature build pub package likes popularity pub points

This is the Dart implementation of OpenFeature, a vendor-agnostic abstraction library for evaluating feature flags.

We support multiple data types for flags (numbers, strings, booleans, objects) as well as hooks, which can alter the lifecycle of a flag evaluation.

Installation

dependencies:
  openfeature: ^0.0.2

Or

dart pub add openfeature

Initialization

import 'package:openfeature/openfeature.dart';

final api = OpenFeatureAPI();
// set your own provider
api.provider = EnvVarProvider();
final client = api.getClient('myClient');
final result = await client.getBooleanValue('myBoolFlag', false);

For complete documentation, visit: https://docs.openfeature.dev/docs/reference/intro

About

Dart (Client) implementation of OpenFeature

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published