copyWith method

CommentCreateDTO copyWith({
  1. String? body,
  2. bool? public,
})

Implementation

CommentCreateDTO copyWith({String? body, bool? public}) {
  return CommentCreateDTO(
    body: body ?? this.body,
    public: public ?? this.public,
  );
}