eppo 1.0.1 copy "eppo: ^1.0.1" to clipboard
eppo: ^1.0.1 copied to clipboard

Eppo SDK for Dart and Flutter applications

Eppo SDK for Dart and Flutter #

The Eppo SDK enables feature flags and experiments in your Dart and Flutter applications with only a few lines of code.

The SDK handles all the complexity of feature flag evaluation and experiment assignment locally in your application. The guide below will walk you through installing the SDK and implementing your first feature flag, experiment, and contextual bandit.

See https://docs.geteppo.com/sdks/client-sdks/dart/quickstart/ for detailed usage instructions.

import 'package:eppo/eppo.dart';

// Initialize the SDK
await Eppo.initialize(
  'your-sdk-key',
  SubjectEvaluation(
    subject: Subject(
      subjectKey: 'user-identifier'
    )
  )
);

// Make an assignment
final String variation = Eppo.getStringAssignment(
  'my-neat-feature',
  'default-value',
);

// Render different components based on assignment
switch(variation) {
  case 'landing-page-a':
    return renderLandingPageA();
  case 'landing-page-b':
    return renderLandingPageB();
  default:
    return renderLandingPageC();
}

Installation #

Add the following to your pubspec.yaml file:

dependencies:
  eppo: ^1.0.0

Contributing #

dart pub get
dart analyze

Running the tests #

dart test
2
likes
0
points
932
downloads

Publisher

verified publishergeteppo.com

Weekly Downloads

Eppo SDK for Dart and Flutter applications

Homepage
Repository (GitHub)
View/report issues

Topics

#feature-flags #experimentation #ab-testing

Documentation

Documentation

License

unknown (license)

Dependencies

crypto, http, logging

More

Packages that depend on eppo