User constructor

User(
  1. UserOptions options
)

Create a TalkJS User

@remarks Use this constructor to synchronize user data with the TalkJS backend.

The fields id, name and email are required. A warning will be emitted if role is not specified.

Set email to null if you want to use TalkJS without email fallback.

Implementation

external factory User(UserOptions options);