Event.fromSDNEvent constructor
Event.fromSDNEvent(
- SDNEvent sdnEvent,
- Room room, {
- 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,
);