growthbook_sdk_flutter library

Classes

AESCryptor
BaseClient
Constant
Constant class for GrowthBook
DecryptionUtils
DioClient
FeatureDataSource
FeaturedDataModel
FeaturesFlowDelegate
FeatureViewModel
FNV
Fowler-Noll-Vo hash - 32 bit
GBConditionEvaluator
Evaluator class fro condition.
GBContext
Defines the GrowthBook context.
GBError
GrowthBook Error Class to handle any error / exception scenario
GBExperiment
Defines a single experiment
GBExperimentEvaluator
Experiment Evaluator Class Takes Context & Experiment & returns Experiment Result
GBExperimentResult
The result of running an Experiment given a specific Context
GBFeature
A Feature object consists of possible values plus rules for how to assign values to users.
GBFeatureEvaluator
Feature Evaluator Class Takes Context and Feature Key Returns Calculated Feature Result against that key
GBFeatureResult
Result for Feature
GBFeatureRule
Rule object consists of various definitions to apply to calculate feature value
GBFilter
Object used for mutual exclusion and filtering users out of experiments based on random hashes
GBSDKBuilderApp
GBTrackData
Used for remote feature evaluation to trigger the TrackingCallback
GBUtils
GrowthBook Utils Class Contains Methods for
GBVariationMeta
Meta info about the variations
GrowthBookSDK
The main export of the libraries is a simple GrowthBook wrapper class that takes a Context object in the constructor. It exposes two main methods: feature and run.

Enums

DecryptionError
GBAttributeType
Both experiments and features can define targeting conditions using a syntax modeled after MongoDB queries. These conditions can have arbitrary nesting levels and evaluating them requires recursion. There are a handful of functions to define, and be aware that some of them may reference function definitions further below. Enum For different Attribute Types supported by GrowthBook.
GBFeatureSource
Enum For defining feature value source.
StateHelper
It will be helpful incase we want to show status of our sdk builder.

Extensions

DoubleExt on double
ObjectChecker on Object?
Extension for checking runtime_time_type of object in special references; 1.String 2.List 3.null 4.bool 5.number 6.Map
PairingExtension on List
Will zip the element.
StringComparison on String

Functions

customLogger(String message) → void

Typedefs

FeatureFetchSuccessCallBack = void Function(FeaturedDataModel featuredDataModel)
GBBucketRange = Tuple2<double, double>
Double Tuple for GrowthBook Ranges
GBCacheRefreshHandler = void Function(bool)
Handler for Refresh Cache Request It updates back whether cache was refreshed or not
GBCondition = Object
Type Alias for Condition Element in GrowthBook Rules
GBFeatures = Map<String, GBFeature>
Type Alias for Feature in GrowthBook Represents json response in this case.
GBNameSpace = Tuple3<String, double, double>
Triple Tuple for GrowthBook Namespaces It has ID, StartRange & EndRange
OnError = void Function(Object error, StackTrace stackTrace)
OnInitializationFailure = void Function(GBError? error)
OnSuccess = void Function(Map<String, dynamic> onSuccess)
TrackingCallBack = void Function(GBExperiment, GBExperimentResult)
A function that takes experiment and result as arguments.
VoidCallback = void Function()

Exceptions / Errors

DecryptionException