Comment constructor

Comment({
  1. required String userID,
  2. required String text,
  3. required int vote,
  4. required bool isUpdated,
  5. DateTime? createdAt,
  6. DateTime? updatedAt,
})

Implementation

Comment({
  required this.userID,
  required this.text,
  required this.vote,
  required this.isUpdated,
  this.createdAt,
  this.updatedAt
});