copyWith method

CommentRequest copyWith({
  1. CommentType? entityType,
  2. int? entityId,
  3. String? body,
})

Implementation

CommentRequest copyWith(
    {enums.CommentType? entityType, int? entityId, String? body}) {
  return CommentRequest(
      entityType: entityType ?? this.entityType,
      entityId: entityId ?? this.entityId,
      body: body ?? this.body);
}