GoogleAnalyticsListener constructor

GoogleAnalyticsListener(
  1. ClientFeatureRepository repository,
  2. String ua, {
  3. String? cid,
  4. GoogleAnalyticsApiClient? apiClient,
})

Implementation

GoogleAnalyticsListener(ClientFeatureRepository repository, this.ua,
    {String? cid, GoogleAnalyticsApiClient? apiClient})
    : _repository = repository,
      cid = cid,
      _apiClient = apiClient ?? GoogleAnalyticsDioApiClient() {
  _analyticsListener = _repository.analyticsEvent.listen(_analyticsPublisher);
}