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,
  8. bool isLast = false,
})

Implementation

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