copyWith method

dynamic copyWith({
  1. String? host,
  2. String? appKey,
  3. String? appSecret,
  4. String? trackId,
  5. String? userId,
  6. String? uniqueId,
  7. double? samplingRate,
  8. int? uploadInterval,
  9. Function? signature,
  10. EventHandlerFunc? eventHandler,
  11. List<AutoTrackPageConfig<Widget>>? pageConfigs,
  12. bool? useCustomRoute,
  13. List<Key>? ignoreElementKeys,
  14. List<String>? ignoreElementStringKeys,
  15. bool? enablePageView,
  16. bool? enablePageLeave,
  17. bool? enableClick,
  18. bool? enableUpload,
  19. bool? enableDrag,
  20. bool? enableIgnoreNullKey,
  21. HttpRequestConfig? httpRequestConfig,
})

Implementation

copyWith({
  String? host,
  String? appKey,
  String? appSecret,
  String? trackId,
  String? userId,
  String? uniqueId,
  double? samplingRate,
  int? uploadInterval,
  Function? signature,
  EventHandlerFunc? eventHandler,
  List<AutoTrackPageConfig>? pageConfigs,
  bool? useCustomRoute,
  List<Key>? ignoreElementKeys,
  List<String>? ignoreElementStringKeys,
  bool? enablePageView,
  bool? enablePageLeave,
  bool? enableClick,
  bool? enableUpload,
  bool? enableDrag,
  bool? enableIgnoreNullKey,
  HttpRequestConfig? httpRequestConfig
}) {
  return AutoTrackConfig(
    host: host ?? this.host,
    appKey: appKey ?? this.appKey,
    appSecret: appSecret ?? this.appSecret,
    trackId: trackId ?? this.trackId,
    userId: userId ?? this.userId,
    uniqueId: uniqueId ?? this.uniqueId,
    samplingRate: samplingRate ?? this.samplingRate,
    uploadInterval: uploadInterval ?? this.uploadInterval,
    signature: signature ?? this.signature,
    eventHandler: eventHandler ?? this.eventHandler,
    pageConfigs: pageConfigs ?? this.pageConfigs,
    useCustomRoute: useCustomRoute ?? this.useCustomRoute,
    ignoreElementKeys: ignoreElementKeys ?? this.ignoreElementKeys,
    ignoreElementStringKeys:
        ignoreElementStringKeys ?? this.ignoreElementStringKeys,
    enablePageView: enablePageView ?? this.enablePageView,
    enablePageLeave: enablePageLeave ?? this.enablePageLeave,
    enableClick: enableClick ?? this.enableClick,
    enableUpload: enableUpload ?? this.enableUpload,
    enableDrag: enableDrag ?? this.enableDrag,
    enableIgnoreNullKey: enableIgnoreNullKey ?? this.enableIgnoreNullKey,
    httpRequestConfig: httpRequestConfig ?? this.httpRequestConfig
  );
}