MessageModel constructor

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

Implementation

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