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,
  17. List<QueryLogEntry>? queries,
  18. List<MessageLogEntry>? messages,
})

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

Implementation

@_i1.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<_i2.LogEntry>? logs,
  List<_i3.QueryLogEntry>? queries,
  List<_i4.MessageLogEntry>? messages,
});