copyWith abstract method

RelationalDatumEntity copyWith({
  1. DateTime? modifiedAt,
  2. int? version,
  3. bool? isDeleted,
})

Creates a new instance of the entity with updated values.

This method is primarily used to update the sync-related fields like modifiedAt, version, and isDeleted during a sync operation.

Subclasses must override this method to include their own fields in the copy process.

Implementation

RelationalDatumEntity copyWith({
  DateTime? modifiedAt,
  int? version,
  bool? isDeleted,
});