NiceComments constructor

const NiceComments({
  1. Key? key,
  2. required List<NiceComment> comments,
  3. void onSubmit(
    1. String text,
    2. String? parentId
    )?,
  4. void onLike(
    1. String id
    )?,
  5. void onDelete(
    1. String id
    )?,
  6. String? currentUserId,
  7. int maxDepth = 3,
  8. String title = 'Comments',
})

Implementation

const NiceComments({
  super.key,
  required this.comments,
  this.onSubmit,
  this.onLike,
  this.onDelete,
  this.currentUserId,
  this.maxDepth = 3,
  this.title = 'Comments',
});