UIEventBase constructor

UIEventBase({
  1. required String actionType,
  2. String? targetWidget,
  3. Offset? position,
  4. String? route,
  5. Map<String, dynamic> widgetInfo = const {},
  6. String? screenshot,
  7. double? screenWidth,
  8. double? screenHeight,
  9. DateTime? timestamp,
})

Implementation

UIEventBase({
  required this.actionType,
  this.targetWidget,
  this.position,
  this.route,
  Map<String, dynamic> widgetInfo = const {},
  this.screenshot,
  this.screenWidth,
  this.screenHeight,
  DateTime? timestamp, // ← Issue #137: Timestamp opcional para reserva
})  : widgetInfo = Map<String, dynamic>.from(widgetInfo),
      _timestamp = timestamp ?? DateTime.now().toUtc();