copyWith method

AlgoliaEvent copyWith({
  1. AlgoliaEventType? eventType,
  2. String? eventName,
  3. String? index,
  4. String? userToken,
  5. DateTime? timestamp,
  6. String? queryID,
  7. List<String>? objectIDs,
  8. List<String>? filters,
  9. List<int>? positions,
})

Implementation

AlgoliaEvent copyWith({
  AlgoliaEventType? eventType,
  String? eventName,
  String? index,
  String? userToken,
  DateTime? timestamp,
  String? queryID,
  List<String>? objectIDs,
  List<String>? filters,
  List<int>? positions,
}) {
  return AlgoliaEvent(
    eventType: eventType ?? this.eventType,
    eventName: eventName ?? this.eventName,
    index: index ?? this.index,
    userToken: userToken ?? this.userToken,
    timestamp: timestamp ?? this.timestamp,
    queryID: queryID ?? this.queryID,
    objectIDs: objectIDs ?? this.objectIDs,
    filters: filters ?? this.filters,
    positions: positions ?? this.positions,
  );
}