copyWith method

ContentPropertyVersion copyWith({
  1. DateTime? when,
  2. String? message,
  3. int? number,
  4. bool? minorEdit,
  5. bool? contentTypeModified,
})

Implementation

ContentPropertyVersion copyWith(
    {DateTime? when,
    String? message,
    int? number,
    bool? minorEdit,
    bool? contentTypeModified}) {
  return ContentPropertyVersion(
    when: when ?? this.when,
    message: message ?? this.message,
    number: number ?? this.number,
    minorEdit: minorEdit ?? this.minorEdit,
    contentTypeModified: contentTypeModified ?? this.contentTypeModified,
  );
}