PeamanMessage constructor
PeamanMessage({
- String? id,
- String? chatId,
- String? text,
- List<
PeamanFileUrl> files = const [], - String? senderId,
- PeamanMessageType type = PeamanMessageType.text,
- List<
String> receiverIds = const <String>[], - String? extraId,
- int? createdAt,
- int? updatedAt,
- bool visibility = true,
- 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 {},
});