UIEvent constructor
UIEvent({
- required UIEventType type,
- required String title,
- String? message,
- Map<
String, dynamic> ? metadata,
Implementation
UIEvent({
required this.type,
required this.title,
this.message,
Map<String, dynamic>? metadata,
}) : id = DateTime.now().millisecondsSinceEpoch.toString(),
timestamp = DateTime.now(),
metadata = metadata ?? {};