OpLogEntry<T extends EntityModel> constructor

const OpLogEntry<T extends EntityModel>(
  1. T entity,
  2. DataOperation operation, {
  3. int? id,
  4. required DateTime createdAt,
  5. required String createdBy,
  6. required DataModelType type,
  7. bool syncedUp = false,
  8. bool syncedDown = false,
  9. DateTime? syncedUpOn,
  10. DateTime? syncedDownOn,
  11. String? serverGeneratedId,
  12. String? clientReferenceId,
  13. List<AdditionalId> additionalIds = const [],
  14. int syncDownRetryCount = 0,
  15. int rowVersion = 1,
  16. bool nonRecoverableError = false,
})

Implementation

const OpLogEntry(
  this.entity,
  this.operation, {
  this.id,
  required this.createdAt,
  required this.createdBy,
  required this.type,
  this.syncedUp = false,
  this.syncedDown = false,
  this.syncedUpOn,
  this.syncedDownOn,
  this.serverGeneratedId,
  this.clientReferenceId,
  this.additionalIds = const [],
  this.syncDownRetryCount = 0,
  this.rowVersion = 1,
  this.nonRecoverableError = false,
});