growthbook_sdk_flutter library
Classes
- AESCryptor
- BaseClient
- Constant
- Constant class for GrowthBook
- DecryptionUtils
- DioClient
- ExperimentEvaluator
- FeatureDataSource
- FeaturedDataModel
- FeatureEvalContext
- FeatureEvaluator
- Feature Evaluator Class Takes Context and Feature Key Returns Calculated Feature Result against that key
- 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
- GBFeature
- A Feature object consists of possible values plus rules for how to assign values to users.
- GBFeatureResult
- Result for Feature
- GBFeatureRule
- Rule object consists of various definitions to apply to calculate feature value
- GBSDKBuilderApp
- GBUtils
- GrowthBook Utils Class Contains Methods for
- 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.
- StickyBucketDocumentChange
- StickyBucketResult
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.
- RoundToExtension on num
- StringComparison on String
Functions
-
customLogger(
String message) → void
Typedefs
- CacheRefreshHandler = void Function(bool)
- FeatureFetchSuccessCallBack = void Function(FeaturedDataModel featuredDataModel)
-
GBBucketRange
= List<
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
= Map<
String, dynamic> - 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
- GBStickyBucketingService = LocalStorageStickyBucketService
- 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()