SessionSummary constructor

const SessionSummary({
  1. required String id,
  2. String? title,
  3. required DateTime startedAt,
  4. required DateTime lastActiveAt,
  5. required int messageCount,
  6. int toolUseCount = 0,
  7. int totalInputTokens = 0,
  8. int totalOutputTokens = 0,
  9. double totalCost = 0.0,
  10. required String model,
  11. String? gitBranch,
  12. String? workingDirectory,
  13. List<String> toolsUsed = const [],
  14. bool isActive = false,
  15. String? preview,
})

Implementation

const SessionSummary({
  required this.id,
  this.title,
  required this.startedAt,
  required this.lastActiveAt,
  required this.messageCount,
  this.toolUseCount = 0,
  this.totalInputTokens = 0,
  this.totalOutputTokens = 0,
  this.totalCost = 0.0,
  required this.model,
  this.gitBranch,
  this.workingDirectory,
  this.toolsUsed = const [],
  this.isActive = false,
  this.preview,
});