PeamanMessage constructor

PeamanMessage({
  1. String? id,
  2. String? chatId,
  3. String? text,
  4. List<PeamanFileUrl> files = const [],
  5. String? senderId,
  6. PeamanMessageType type = PeamanMessageType.text,
  7. List<String> receiverIds = const <String>[],
  8. String? extraId,
  9. int? createdAt,
  10. int? updatedAt,
  11. bool visibility = true,
  12. Map<String, dynamic> extraData = const {},
})

Implementation

PeamanMessage({
  this.id,
  this.chatId,
  this.text,
  this.files = const [],
  this.senderId,
  this.type = PeamanMessageType.text,
  this.receiverIds = const <String>[],
  this.extraId,
  this.createdAt,
  this.updatedAt,
  this.visibility = true,
  this.extraData = const {},
});