copyWith abstract method

  1. @useResult
SessionLogEntry copyWith({
  1. int? id,
  2. String? serverId,
  3. DateTime? time,
  4. String? module,
  5. String? endpoint,
  6. String? method,
  7. double? duration,
  8. int? numQueries,
  9. bool? slow,
  10. String? error,
  11. String? stackTrace,
  12. int? authenticatedUserId,
  13. String? userId,
  14. bool? isOpen,
  15. DateTime? touched,
  16. List<LogEntry>? logs = const _is.$UndefinedList<_iv7ld46g.LogEntry>(),
  17. List<QueryLogEntry>? queries = const _is.$UndefinedList<_inqjskye.QueryLogEntry>(),
  18. List<MessageLogEntry>? messages = const _is.$UndefinedList<_iky1nb92.MessageLogEntry>(),
})

Returns a shallow copy of this SessionLogEntry with some or all fields replaced by the given arguments.

Implementation

@_is.useResult
SessionLogEntry copyWith({
  int? id,
  String? serverId,
  DateTime? time,
  String? module,
  String? endpoint,
  String? method,
  double? duration,
  int? numQueries,
  bool? slow,
  String? error,
  String? stackTrace,
  int? authenticatedUserId,
  String? userId,
  bool? isOpen,
  DateTime? touched,
  List<_iv7ld46g.LogEntry>? logs =
      const _is.$UndefinedList<_iv7ld46g.LogEntry>(),
  List<_inqjskye.QueryLogEntry>? queries =
      const _is.$UndefinedList<_inqjskye.QueryLogEntry>(),
  List<_iky1nb92.MessageLogEntry>? messages =
      const _is.$UndefinedList<_iky1nb92.MessageLogEntry>(),
});