AnalyticsService constructor

AnalyticsService({
  1. required String projectId,
  2. bool? enableAnalytics,
})

Implementation

AnalyticsService({
  required this.projectId,
  this.enableAnalytics,
}) {
  _endpoint = kDebugMode ? _debugApiEndpoint : UrlConstants.analyticsService;
  _headers = kDebugMode
      ? coreUtils.instance.getAPIHeaders(_debugProjectId)
      : coreUtils.instance.getAPIHeaders(projectId);
}