feat: update terminal entry constructor to initialize timestamp by default

This commit is contained in:
Udhay-Adithya
2025-09-10 13:04:07 +05:30
parent 3bb9fb2531
commit 5eee413b01
2 changed files with 2 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ import 'system_log_data.dart';
class TerminalEntry {
TerminalEntry({
required this.id,
required this.ts,
DateTime? ts,
required this.source,
required this.level,
this.requestId,
@@ -15,7 +15,7 @@ class TerminalEntry {
this.network,
this.js,
this.system,
});
}) : ts = ts ?? DateTime.now();
final String id;
final DateTime ts;