OutboundOperation constructor

OutboundOperation({
  1. required String id,
  2. required OutboundOperationType type,
  3. required String data,
  4. int retryCount = 0,
  5. OutboundOperationStatus status = OutboundOperationStatus.pending,
  6. DateTime? createdAt,
  7. DateTime? processedAt,
  8. String? errorMessage,
})

Creates an outbound operation.

Implementation

OutboundOperation({
  required this.id,
  required this.type,
  required this.data,
  this.retryCount = 0,
  this.status = OutboundOperationStatus.pending,
  DateTime? createdAt,
  this.processedAt,
  this.errorMessage,
}) : createdAt = createdAt ?? DateTime.now();