copyWith method
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,
);
}