copyWith method

AuditRecord copyWith({
  1. AuditRecordAuthor? author,
  2. String? remoteAddress,
  3. int? creationDate,
  4. String? summary,
  5. String? description,
  6. String? category,
  7. bool? sysAdmin,
  8. bool? superAdmin,
  9. AffectedObject? affectedObject,
  10. List<ChangedValue>? changedValues,
  11. List<AffectedObject>? associatedObjects,
})

Implementation

AuditRecord copyWith(
    {AuditRecordAuthor? author,
    String? remoteAddress,
    int? creationDate,
    String? summary,
    String? description,
    String? category,
    bool? sysAdmin,
    bool? superAdmin,
    AffectedObject? affectedObject,
    List<ChangedValue>? changedValues,
    List<AffectedObject>? associatedObjects}) {
  return AuditRecord(
    author: author ?? this.author,
    remoteAddress: remoteAddress ?? this.remoteAddress,
    creationDate: creationDate ?? this.creationDate,
    summary: summary ?? this.summary,
    description: description ?? this.description,
    category: category ?? this.category,
    sysAdmin: sysAdmin ?? this.sysAdmin,
    superAdmin: superAdmin ?? this.superAdmin,
    affectedObject: affectedObject ?? this.affectedObject,
    changedValues: changedValues ?? this.changedValues,
    associatedObjects: associatedObjects ?? this.associatedObjects,
  );
}