VideoMessage.from constructor

VideoMessage.from(
  1. Message msg,
  2. String? caption,
  3. int durationInSec,
  4. String thumbnail,
  5. String url,
)

Implementation

factory VideoMessage.from(
  Message msg,
  String? caption,
  int durationInSec,
  String thumbnail,
  String url,
) {
  return VideoMessage._(
    id: msg.id,
    roomId: msg.roomId,
    senderId: msg.senderId,
    createdAt: msg.createdAt,
    updatedAt: msg.updatedAt,
    statuses: msg.statuses,
    deletes: msg.deletes,
    pins: msg.pins,
    removes: msg.removes,
    editedAt: msg.editedAt,
    replyId: msg.replyId,
    reactions: msg.reactions,
    isDeleted: msg.isDeleted,
    isEdited: msg.isEdited,
    isForwarded: msg.isForwarded,
    extra: msg.extra,
    caption: caption,
    durationInSec: durationInSec,
    thumbnail: thumbnail,
    url: url,
  );
}