init method
Implementation
Future<void> init(PamConfig config, bool debug) async {
WidgetsFlutterBinding.ensureInitialized();
PamFlutterPlatform.instance.setOnPlatformCallback(methodsHandler);
trackerAPI = TrackerAPI(config.pamServer);
this.config = config;
isEnableLog = debug;
var allow = await pref.getBool(SaveKey.allowTracking);
if (allow != null) {
allowTracking = allow;
}
unawaited(_syncConsentStatus(config.trackingConsentMessageID));
}