CrashEventBase constructor
CrashEventBase({
- required String title,
- required String subtitle,
- required String originalMessage,
- String? message,
- String? traceId,
- String? messageStatus,
- String? hash,
- String buildHash = '',
- String networkType = '',
- String carrier = '',
- String ip = 'NA',
- String? locale,
- bool gpsEnabled = true,
- int? crashedAfter,
- String? category,
- String? stack,
- String? library,
- DateTime? timestamp,
Implementation
CrashEventBase({
required this.title,
required this.subtitle,
required this.originalMessage,
this.message,
String? traceId,
String? messageStatus,
String? hash,
this.buildHash = '',
this.networkType = '',
this.carrier = '',
this.ip = 'NA',
String? locale,
this.gpsEnabled = true,
int? crashedAfter,
// Legacy fields for backward compatibility
this.category,
this.stack,
this.library,
DateTime? timestamp, // ← Issue #137: Timestamp opcional para reserva
}) : traceId = traceId ?? _generateTraceId(),
messageStatus = messageStatus ?? 'flutter_captured',
hash = hash ?? _generateHash(title, originalMessage),
locale = locale ?? _getCurrentLocale(),
crashedAfter = crashedAfter ?? DateTime.now().millisecondsSinceEpoch,
_timestamp = timestamp ?? DateTime.now().toUtc();