Event.fromSDNEvent constructor

Event.fromSDNEvent(
  1. SDNEvent sdnEvent,
  2. Room room, {
  3. EventStatus status = defaultStatus,
})

Implementation

factory Event.fromSDNEvent(
  SDNEvent sdnEvent,
  Room room, {
  EventStatus status = defaultStatus,
}) =>
    Event(
      status: status,
      content: sdnEvent.content,
      type: sdnEvent.type,
      eventId: sdnEvent.eventId,
      senderId: sdnEvent.senderId,
      originServerTs: sdnEvent.originServerTs,
      unsigned: sdnEvent.unsigned,
      prevContent: sdnEvent.prevContent,
      stateKey: sdnEvent.stateKey,
      room: room,
    );