flagdeck 0.0.1 copy "flagdeck: ^0.0.1" to clipboard
flagdeck: ^0.0.1 copied to clipboard

A new Flutter package for the Flagdeck platform.

This document provides guidance for implementing the Flagdeck SDK for mobile platforms.

Usage #

Initialize SDK #

final FlagDeckSdk flagDeckSdk = FlagDeckSdk(
    apiKey: "key",
  );

  EvaluationResult? evaluationResult = await flagDeckSdk.evaluateOrFind(
      FlagdeckRequestData(
        flagKey: 'flagkey',
        context: EvaluationContext(userId: "777"),
        // enableOfflineMode: true,
        // invalidateCache: true,
        // onBeforeRequest: () {},
        // onSuccess: (p0) {},
        onError: (p0, data) {
          log("Errr++ p0 $data  ");
        },
      ),
    );

Evaluate a Flag or a list of Flags #

EvaluationResult? evaluationResult = await flagDeckSdk.evaluateOrFind(
    FlagdeckRequestData(
    flagKey: 'flagkey',
    context: EvaluationContext(userId: "777"),
    
    ),
);


await flagDeckSdk.evaluateBatch(
    FlagdeckBatchRequestData(
    flagKeys: ['a-flag', 'b-flag',],
    ),
);
7
likes
0
points
14
downloads

Publisher

verified publisherflagdeck.com

Weekly Downloads

A new Flutter package for the Flagdeck platform.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, http, package_info_plus, shared_preferences

More

Packages that depend on flagdeck