AnalyticsIO constructor

AnalyticsIO(
  1. String trackingId,
  2. String applicationName,
  3. String applicationVersion, {
  4. String? analyticsUrl,
  5. String? analyticsBatchingUrl,
  6. Directory? documentDirectory,
  7. HttpClient? client,
  8. Duration? batchingDelay,
})

Implementation

AnalyticsIO(
  String trackingId,
  String applicationName,
  String applicationVersion, {
  String? analyticsUrl,
  String? analyticsBatchingUrl,
  Directory? documentDirectory,
  HttpClient? client,
  Duration? batchingDelay,
}) : super(
        trackingId,
        IOPersistentProperties(applicationName,
            documentDirPath: documentDirectory?.path),
        IOPostHandler(client: client),
        applicationName: applicationName,
        applicationVersion: applicationVersion,
        analyticsUrl: analyticsUrl,
        analyticsBatchingUrl: analyticsBatchingUrl,
        batchingDelay: batchingDelay,
      ) {
  final locale = getPlatformLocale();
  if (locale != null) {
    setSessionValue('ul', locale);
  }
}