AutoTrackConfig constructor
AutoTrackConfig({
- String? host,
- String? appKey = '',
- String? appSecret = '',
- String? trackId,
- String? userId,
- Function? signature,
- String? uniqueId,
- List<
AutoTrackPageConfig< pageConfigs = const [],Widget> > - bool useCustomRoute = false,
- List<
Key> ignoreElementKeys = const [], - List<
String> ignoreElementStringKeys = const [], - bool enablePageView = true,
- bool enablePageLeave = false,
- bool enableClick = true,
- bool enableUpload = false,
- bool enableDrag = false,
- bool enableIgnoreNullKey = false,
- int? uploadInterval,
Implementation
AutoTrackConfig({
this.host,
this.appKey = '',
this.appSecret = '',
this.trackId,
this.userId,
this.signature,
this.uniqueId,
this.pageConfigs = const [],
this.useCustomRoute = false,
this.ignoreElementKeys = const [],
this.ignoreElementStringKeys = const [],
this.enablePageView = true,
this.enablePageLeave = false,
this.enableClick = true,
this.enableUpload = false,
this.enableDrag = false,
this.enableIgnoreNullKey = false,
this.uploadInterval
}) {
trackId ??= const Uuid().v4().replaceAll('-', '');
signature ??= (t) => sha256.convert(utf8.encode('$appKey$t$appSecret')).toString();
}