AnalyticsService constructor

AnalyticsService({
  1. required IReownCore core,
  2. bool? enableAnalytics,
})

Implementation

AnalyticsService({
  required IReownCore core,
  this.enableAnalytics,
}) {
  _core = core;
  _endpoint = kDebugMode ? _debugApiEndpoint : UrlConstants.analyticsService;
  _headers = kDebugMode
      ? CoreUtils.getAPIHeaders(_debugProjectId)
      : CoreUtils.getAPIHeaders(_core.projectId);
}