Advertisement
DwikyChandra

Untitled

May 29th, 2022
1,497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.52 KB | None | 0 0
  1. GrowthBookSDK initializeSDK(Map<String, String> userAttr) {
  2.   GrowthBookSDK growthBookSDK = GBSDKBuilderApp(
  3.           apiKey: "this is api key",
  4.           hostURL: 'https://cdn.growthbook.io/api/features/this is api key',
  5.           attributes: userAttr,
  6.           growthBookTrackingCallBack: (experiment, experimentResult) {
  7.             /// Track feature.
  8.           })
  9.       .initialize()
  10.     ..afterFetch = () {
  11.       print('success fetch');
  12.     };
  13.   print(growthBookSDK.feature("param").value);
  14.   return growthBookSDK;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement