createComment abstract method

Future<Comment> createComment(
  1. CreateCommentModel comment
)

Creates a comment.

Uses a CreateCommentModel type parameter, which does not have an id field. A Comment type contains the id generated by the database.

Implementation

Future<Comment> createComment(CreateCommentModel comment);