openfeature 0.0.2 openfeature: ^0.0.2 copied to clipboard
This is the Dart implementation of OpenFeature, a vendor-agnostic abstraction library for evaluating feature flags.
import 'package:openfeature/openfeature.dart';
Future<void> main(List<String> arguments) async {
final api = OpenFeatureAPI();
// set your own provider
api.provider = EnvVarProvider();
final client = api.getClient('myClient');
await client.getBooleanValue('myBoolFlag', false);
}