initialize static method

FutureOr initialize({
  1. String? appKey,
  2. bool gdprConsent = true,
  3. bool ccpaConsent = true,
})

Initializes the SDK

Call this on the start of your application.

Implementation

static FutureOr<dynamic> initialize(
    {final String? appKey,
    bool gdprConsent = true,
    bool ccpaConsent = true}) async {
  _channel.setMethodCallHandler(_handle);
  await _channel.invokeMethod('initialize', {
    'appKey': appKey,
    'gdprConsent': gdprConsent,
    'ccpaConsent': ccpaConsent
  });
}