MessageModel constructor

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

Implementation

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