build method

  1. @override
CommentModel build(
  1. String commentSectionID
)

Implementation

@override
CommentModel build(String commentSectionID) {
  final userID = ref.watch(currentUserProvider)!.uid!;
  final int randomID = Random().nextInt(1000000);
  return CommentModel(
    commentID: randomID.toString(),
    userID: userID,
  );
}