Comment constructor

const Comment({
  1. required String id,
  2. required String shaderId,
  3. required String userId,
  4. String? picture,
  5. required DateTime date,
  6. required String text,
  7. bool hidden = false,
})

Builds a Comment

id: The id of the comment shaderId: The id of the shader userId: The user id of user that posted the comment picture: The picture of the user who posted the comment date: The date the comment was posted text: The text of the comment hidden: If the current user comment is hidden

Implementation

const Comment(
    {required this.id,
    required this.shaderId,
    required this.userId,
    this.picture,
    required this.date,
    required this.text,
    this.hidden = false});