User.fromState constructor

User.fromState({
  1. Map<String, dynamic>? prevContent,
  2. required String stateKey,
  3. Map<String, dynamic> content = const {},
  4. required String typeKey,
  5. required String eventId,
  6. required String senderId,
  7. required DateTime originServerTs,
  8. dynamic unsigned,
  9. required Room room,
})

Implementation

User.fromState({
  Map<String, dynamic>? prevContent,
  required String stateKey,
  Map<String, dynamic> content = const {},
  required String typeKey,
  required String eventId,
  required String senderId,
  required DateTime originServerTs,
  dynamic unsigned,
  required Room room,
}) : super(
        stateKey: stateKey,
        prevContent: prevContent,
        content: content,
        type: typeKey,
        eventId: eventId,
        senderId: senderId,
        originServerTs: originServerTs,
        unsigned: unsigned,
        room: room,
      );