copyWith method

CustomContentVersion copyWith({
  1. DateTime? createdAt,
  2. String? message,
  3. int? number,
  4. bool? minorEdit,
  5. String? authorId,
  6. VersionedEntity? custom,
})

Implementation

CustomContentVersion copyWith(
    {DateTime? createdAt,
    String? message,
    int? number,
    bool? minorEdit,
    String? authorId,
    VersionedEntity? custom}) {
  return CustomContentVersion(
    createdAt: createdAt ?? this.createdAt,
    message: message ?? this.message,
    number: number ?? this.number,
    minorEdit: minorEdit ?? this.minorEdit,
    authorId: authorId ?? this.authorId,
    custom: custom ?? this.custom,
  );
}