Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.89 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.89 KB

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