MessageModel constructor

MessageModel({
  1. int? id,
  2. required OwnerType ownerType,
  3. required String? ownerName,
  4. String? avatar,
  5. required String content,
  6. required int createdAt,
})

Implementation

MessageModel({
  this.id,
  required this.ownerType,
  required this.ownerName,
  this.avatar,
  required this.content,
  required this.createdAt,
}) : key = GlobalKey();