MessageModel constructor

MessageModel({
  1. int? id,
  2. required OwnerType ownerType,
  3. String? ownerName,
  4. String? avatar,
  5. String? content,
  6. int? createAt,
  7. bool showCreatedTime = false,
})

Implementation

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