OutboundOperation constructor
OutboundOperation({
- required String id,
- required OutboundOperationType type,
- required String data,
- int retryCount = 0,
- OutboundOperationStatus status = OutboundOperationStatus.pending,
- DateTime? createdAt,
- DateTime? processedAt,
- 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();