copyWith method

Session copyWith({
  1. int? cachedTs,
  2. String? endEventName,
})

Implementation

Session copyWith({int? cachedTs, String? endEventName}) {
  return Session(
    sessionId: sessionId,
    sessionStartTs: sessionStartTs,
    lastCachedTs: cachedTs ?? lastCachedTs,
    startEvent: startEvent,
    endEvent: endEventName ?? endEvent,
  );
}