AnalyticsIO constructor
AnalyticsIO(})
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);
}
}