MessageModel constructor

MessageModel({
  1. int? id,
  2. required OwnerType ownerType,
  3. String? ownerName,
  4. String? avatar,
  5. required String content,
  6. required int createdAt,
  7. bool isLast = false,
  8. bool isHistory = true,
})

Implementation

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