Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GrowthBookSDK initializeSDK(Map<String, String> userAttr) {
- GrowthBookSDK growthBookSDK = GBSDKBuilderApp(
- apiKey: "this is api key",
- hostURL: 'https://cdn.growthbook.io/api/features/this is api key',
- attributes: userAttr,
- growthBookTrackingCallBack: (experiment, experimentResult) {
- /// Track feature.
- })
- .initialize()
- ..afterFetch = () {
- print('success fetch');
- };
- print(growthBookSDK.feature("param").value);
- return growthBookSDK;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement