ChatModal constructor
ChatModal({
- String? id,
- required String from,
- required String message,
- required String messageType,
- required Timestamp createdAt,
- ValueNotifier<
int> ? progress, - String? thumbnail,
- int? durationInSeconds,
- AudioPlayer? audioPlayer,
- bool fromServer = true,
- bool isCached = false,
- required List deliveredTo,
- required List readBy,
- required Map reactions,
Implementation
ChatModal({
this.id,
required this.from,
required this.message,
required this.messageType,
required this.createdAt,
this.progress,
this.thumbnail,
this.durationInSeconds,
this.audioPlayer,
this.fromServer = true,
this.isCached = false,
required this.deliveredTo,
required this.readBy,
required this.reactions,
});